axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sam Ruby" <>
Subject Re: setJavaClass
Date Wed, 09 Jan 2002 23:26:03 GMT
Doug Davis wrote:
> Can someone explain the purpose of setJavaClass and why its on the factory
> and not on the deser itself?  The comments in the code don't really explain
> the purpose (or need for) of this method.

Before this change, a significant percentage of the runtime for even a
simple "get stock quote" was in Class.getDeclaredConstructor.  The reason?
Every deserializer would have to look up the constructor themselves as the
intended class wasn't "known" until after the deserializer was constructed.
The improvement is even more dramatic where significant time was being
spent in determining whether the class was an enumerator or not - every
single time!

- Sam Ruby

View raw message