Thanks
> --
> You received this message because you are subscribed to the Google
> Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en
> .
>
* Use of the Collections.synchronizedMap- I believe it is much more
efficient to use the ConcurrentHashMap in place of the synchronized
maps.
* SimplePool<T> has a tremendous amount of synchronization and it is
used in a number of places (ByteEncoder / Decoder, etc.) . I believe
you can replace all of this code with a LinkedBlockingQueue (to act as
an object pool) and an AtomicInteger (to count creation totals).
* RawDBObject uses a static shared byte array that is synchronized on
access - I believe the code only accesses it in one place and this
array could be created locally in that method eliminating the need for
the synchronization.
Is there a way to upload the patch file here I created for you to
examine ? or should I enter a Jira bug ?
Thanks
On Feb 27, 4:38 pm, Eliot Horowitz <eliothorow...@gmail.com> wrote:
> At least in my tests I haven't seen that. If you could send some
> sample code can take a look.
>