lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sivan Yogev (JIRA)" <>
Subject [jira] [Commented] (LUCENE-4156) Improve implementation of DirectoryTaxonomyWriter.getSize()
Date Wed, 20 Jun 2012 08:28:42 GMT


Sivan Yogev commented on LUCENE-4156:

Since getParent() could be heavily used during facets indexing I was thinking that reducing
the two method calls (one to getParent another for ensureOpen) could make a difference, but
you are right that it is not safe for future implementation details. So best keep the patch
as is.
> Improve implementation of DirectoryTaxonomyWriter.getSize()
> -----------------------------------------------------------
>                 Key: LUCENE-4156
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: modules/facet
>            Reporter: Sivan Yogev
>            Assignee: Shai Erera
>            Priority: Minor
>         Attachments: LUCENE-4156.patch
> Current implementation of DirectoryTaxonomyWriter.getSize() is synchrionized and invokes
indexWriter.maxDoc(), both harming performance.

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