lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 35037] - [PATCH] Some Field methods use Classcast check instead of instanceof which is slow
Date Tue, 24 May 2005 20:47:48 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35037>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35037





------- Additional Comments From psmith@apache.org  2005-05-24 22:47 -------
Daniel, you are correct that the cost of the exception catching is only incurred
if the exception is actually thrown.  I was a bit stunned to see this crop up in
performance analysis.  See Bug 34930 where some performance profiling highlights
this area as one of the higher CPU consumers, so it _must_ be getting called. 
now over a large Document set being indexed, if it is invoked quite a bit, it
ends up causing a reasonable impact on the overall timeline for indexing.

Isn't the proposed patch a better way to do the same thing even if it's NOT
called that often? 

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message