>From: "marc fleury" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >CC: "Jboss-Development@Lists. Sourceforge. Net" ><[EMAIL PROTECTED]> >Subject: RE: [JBoss-dev] Why is new ObjectName() so slow? >Date: Sun, 28 Apr 2002 11:49:46 -0700 > >|because an object name contains a set of properties that need to be >|parsed and may also be a pattern which needs to be determined > >right the value=name pairs > >|the current implementation does this eagerly at object name creation >|time > >can we do this lazily? can't we build equality and hash on the FULL string? > >it strikes that the eager parsing is silly (eats up 50% of the time !!!) >and >only really useful in querying? Can you think of optimizations? >
I've go a feeling that the order of the properties does not matter, so "DefaultDomain:service=XADataSource,name=DefaultDS" would be the same object as "DefaultDomain:name=DefaultDS,service=XADataSource". I think that's whey he has to parse it early. Regards, Hiram _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
