lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <>
Subject [jira] [Created] (LUCENE-4474) CloseableThreadLocal maybePurge could be too expensive
Date Wed, 10 Oct 2012 15:57:03 GMT
Robert Muir created LUCENE-4474:

             Summary: CloseableThreadLocal maybePurge could be too expensive
                 Key: LUCENE-4474
             Project: Lucene - Core
          Issue Type: Task
            Reporter: Robert Muir

Was doing some tests with geonames database (19 fields, just using StandardAnalyzer), and
noticed this in the profiler.

It could be a ghost, but we should investigate anyway.

It seems ridiculous for a situation like mine:
* indexing with one thread
* every 40 Analyzer.tokenStream() calls [basically every other doc], this thing is called
* it gets iterators over the map, checks threads, this and that. but of course there is only
one thread! 

Maybe its a good idea if it checks size() first or something. at least dont do this stuff
if size() == 1, as I bet a lot of people index with a single thread. 

Or maybe all this stuff is really cheap and its just a ghost.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message