lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Willnauer (Commented) (JIRA)" <>
Subject [jira] [Commented] (LUCENE-3500) improve getLiveDocs() performance
Date Sat, 08 Oct 2011 18:16:29 GMT


Simon Willnauer commented on LUCENE-3500:

I am not sure if we can simply remove the ensureOpen() call here. If we close the reader and
I use it afterwards to get del docs I could see a null value which doesn't reflect the actual
del docs. Maybe we shouldn't null this out on close? I actually wonder if we can make this
somehow final together with other members?
> improve getLiveDocs() performance
> ---------------------------------
>                 Key: LUCENE-3500
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Yonik Seeley
>            Priority: Minor
>         Attachments: LUCENE-3500.patch
> On segmentReader, liveDocs is volatile because they used to be loaded on demand.
> This no longer appears to be the case... liveDocs are always loaded up front.
> This also means that getLiveDocs() can never fail (even after close), and we can remove
the ensureOpen call.
> Minor optimizations, but volatile reads still do prevent optimizations across that boundary.

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


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

View raw message