[jdom-interest] a question about node type

Syloke Soong ssoong at protedyne.com
Wed Dec 6 10:48:15 PST 2006


[quote]
instanceof is reflection and reflection is slow :).
[/quote]

Omg[osh], I've got instanceof operator all over the place. Though it
seems my IO operations that are slowing my apps down.

Before java came out with reflection, was instanceof operator in another
package? Was the "+" operator in a package?

Is a java operator part of a package - but I can't reconstruct an
operator like I could in C++.

How expensive could it be for instanceof to getClass? And then compare
it.
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender immediately. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Even though this company takes every precaution to ensure this email is virus-free, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
Protedyne Corporation, 1000 Day Hill Rd, Windsor, CT 06095, USA,                                                                  
www.protedyne.com



More information about the jdom-interest mailing list