You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2002/11/13 20:53:47 UTC
DO NOT REPLY [Bug 14522] -
Performance problem due to unnecessary ArrayIndexOutOfBoundsException
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14522>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14522
Performance problem due to unnecessary ArrayIndexOutOfBoundsException
------- Additional Comments From keshlam@us.ibm.com 2002-11-13 19:53 -------
This is a question of whether we believe null will be a common or uncommon case.
If uncommon, the exception may be lower total cost than applying the if-NULL
test every time.
And it _SHOULD_ be uncommon, as we should rarely be asking for the DTM belonging
to the NULL handle.
If you're seeing a significant number of these exceptions thrown, we may want to
look at higher-level code to determine why this is happening, and whether a fix
should be applied here or in the callers. And we want to be darned careful to
_measure_ both the current code and the fix; as I remember it, I switched to the
current version after such a measurement suggested that it was a net gain.