Hi, I run into big performance problems regarding Joda and Terracotta (a clustering solution). At the moment I don't have any ideas how to solve that. Maybe anybody has any experiences with Joda and Terracotta?
I have created a small micro benchmark to test that. It can be found at the Terracotta forums (http://forums.terracotta.org/forums/posts/list/0/903.page#5537). The main problem is that it seems to be necessary to add the following fields as root: <roots> <root> <field-expression>private static final org.joda.time.DateTimeFieldType org.joda.time.DateTimeFieldType.*</field-expression> </root> </roots> If I don't add that root the methods #isAfter() #isBefore #isEquals don't work as expected. And therefore it is necessary to add locking for those methods: <autolock auto-synchronized="true"> <method-expression>* org.joda.time.tz.CachedDateTimeZone.get*(..)</method-expression> <lock-level>write</lock-level> </autolock> <autolock auto-synchronized="true"> <method-expression>* org.joda.time.chrono.BasicChronology.get*(..)</method-expression> <lock-level>write</lock-level> </autolock> But locking those methods on the hole cluster results in a major performance impact when working with Joda objects. If anyone can give me any hint or comment, that will be great. At the moment I am thinking about removing Joda Time completely from the cluster and only do local calculations with Joda. But that means a lot of work and I really don't wanna miss Joda time... Regards, Johannes Schneider -- Johannes Schneider Im Lindenwasen 15 72810 Gomaringen Fon +49 7072 9229972 Fax +49 7072 509999 Mobil +49 178 1364488 [EMAIL PROTECTED] http://www.johannes-schneider.info
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________ Joda-interest mailing list Joda-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/joda-interest