lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario Ivankovits <>
Subject Re: New FieldSortedHitQueue uses Java 1.4 feature
Date Thu, 04 Mar 2004 07:13:42 GMT
Dmitry Serebrennikov schrieb:

> The change you made from Regexp to Integer.parseInt sounds like the 
> right way to go anyway. Why pay the overhead of the regexp processing 
> if all that's needed is a simple parsing already supported elsewhere.

I dont know where and how often this piece of code gets called and how 
often a wrong value will be passed, but to throw an exception might be 
more expensive.
Think of the stacktrace which needs to be filled.

Maybe the type of the term should then be cached (per field).


View raw message