After my other two patches go in, I am in a comfortable range for performance on my server. This is a way to improve performance even further if someone needs to later for unmarshalling. (I may do this in a few months if our server has performance problem and I really need it)

The performance gain will be bigger for jdk1.3 vs. 1.4, because of improvements in 1.4 for using reflection.

The code generator would need to be changed to generate another method such as getInstanceOf() which would return an instance of the object it describes such as
public class ButtonPressDescriptor
{
public ButtonPress createInstance()
{
return new ButtonPress();
}
}

In the UnmarshalHandler, this method would be used instead of using reflection for top-level objects. The smaller your xml packets, the bigger the performance gain this will be. If you have a server like me with objects constantly coming in, this will help alot.

ps 2 times is my guess based on other performance improvements I made.
Dean

----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev

Reply via email to