[
https://issues.apache.org/jira/browse/LUCENE-4156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shai Erera updated LUCENE-4156:
-------------------------------
Attachment: LUCENE-4156.patch
Remove synchronization from getSize() and made nextID volatile. I also
clarified some javadocs and improved the exception thrown from getParent().
> Improve implementation of DirectoryTaxonomyWriter.getSize()
> -----------------------------------------------------------
>
> Key: LUCENE-4156
> URL: https://issues.apache.org/jira/browse/LUCENE-4156
> 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:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]