openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Linskey" <plins...@gmail.com>
Subject Re: Performance drop in AbstractHashedMap.clear()
Date Sat, 10 Nov 2007 00:57:39 GMT
I opened OPENJPA-439 to track this.

-Patrick

On Nov 8, 2007 1:56 PM, Christiaan <christiaan_db@hotmail.com> wrote:
>
> Hi Kevin,
> I think re-creating the Set is much faster as well. I've looked at the
> implementation of
> org.apache.commons.collections.map.AbstractHashedMap.clear() and it simply
> iterates over all entries in the hashmap and sets all references to null.
> Btw, as you can see in the backtrace (AbstractHashedMap_clear()run2.png)
> each clear is being called in BrokerImpl.endOperation(), so this would be a
> great performance improvement in the OpenJPA code.
>
> kind regards,
> Christiaan
>
> --
> View this message in context: http://www.nabble.com/Performance-drop-in-AbstractHashedMap.clear%28%29-tf4769771.html#a13656730
>
> Sent from the OpenJPA Developers mailing list archive at Nabble.com.
>
>



-- 
Patrick Linskey
202 669 5907

Mime
View raw message