Ok so I will cache the ObjectName (I was planning on doing it today) marcf
|-----Original Message----- |From: Trevor Squires [mailto:[EMAIL PROTECTED]] |Sent: Monday, February 04, 2002 10:24 PM |To: marc fleury |Cc: David Jencks; [EMAIL PROTECTED] |Subject: RE: [JBoss-dev] new ObjectName(String) is a pig | | | |Hey guys, | |ObjectName construction is *always* going to be a pig - it has to jump |through some significant hoops to checked for malformed inputs (including |the creation of a hashtable to store key properties). | |On top of that, our impl is skewed to favour people who cache frequently |used ObjectNames. The hashcode() is precomputed at construction using the |canonical name and equals() just compares hashcodes. | |Trev | | |On Mon, 4 Feb 2002, marc fleury wrote: | |> Yeah.. I am thinking of hashing the ON and just passing that in |the proxy. |> Would really give the proxy. Must be done at the proxy level with static |> maps, i.e. a total hack :) |> |> Fine by me frankly. I will try to do that tomorrow. |> |> Expect dramatic speed increases on these puppies very soon :) |> |> marcf |> |> |-----Original Message----- |> |From: [EMAIL PROTECTED] |> |[mailto:[EMAIL PROTECTED]]On Behalf Of David |> |Jencks |> |Sent: Monday, February 04, 2002 8:14 PM |> |To: [EMAIL PROTECTED] |> |Subject: Re: [JBoss-dev] new ObjectName(String) is a pig |> | |> | |> |There is a fair amount of code that does something like this in a loop: |> | |> | |> |server.invoke(new ObjectName(<static constant>, "op", <variable |args>...); |> | |> |I guess we should hunt it all down whether or not juha's is |much faster -- |> |it's really no harder to cache the ObjectName than the string. |> | |> |david jencks |> | |> |On 2002.02.05 01:52:59 -0500 marc fleury wrote: |> |> A big pig... chewing up 0.04 ms on a 0.06 container time for |a total of |> |> 0.1ms ... ouch... |> |> |> |> So much for JMX dynamic invocation if we lose the time there... I will |> |> fix |> |> that easily. |> |> |> |> we need to be able to encode that better if we want to gain |time. Maybe |> |> Juha's et al JMX implementation will shine here, because this guy is a |> |> pig |> |> in the reference implementation |> |> |> |> marcf |> |> |> |> |> |> _______________________________________________ |> |> Jboss-development mailing list |> |> [EMAIL PROTECTED] |> |> https://lists.sourceforge.net/lists/listinfo/jboss-development |> |> |> |> |> | |> |_______________________________________________ |> |Jboss-development mailing list |> |[EMAIL PROTECTED] |> |https://lists.sourceforge.net/lists/listinfo/jboss-development |> |> |> _______________________________________________ |> Jboss-development mailing list |> [EMAIL PROTECTED] |> https://lists.sourceforge.net/lists/listinfo/jboss-development |> _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
