You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2014/08/14 01:02:12 UTC
[jira] [Updated] (LUCENE-5884) Speed up FST.ramBytesUsed
[ https://issues.apache.org/jira/browse/LUCENE-5884?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael McCandless updated LUCENE-5884:
---------------------------------------
Attachment: LUCENE-5884.patch
Simple patch: I just made Outputs.ramBytesUsed abstract and fixed its subclasses to statically compute the "base" bytes used, and then just add in what's different about each output.
I'd also like to pre-compute the bytes used by the arc cache and save that away, instead of computing it each time ... next iteration.
> Speed up FST.ramBytesUsed
> -------------------------
>
> Key: LUCENE-5884
> URL: https://issues.apache.org/jira/browse/LUCENE-5884
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Michael McCandless
> Assignee: Michael McCandless
> Fix For: 5.0, 4.10
>
> Attachments: LUCENE-5884.patch
>
>
> It's a little heavy now, relying too much on reflection (RUE.shallowSizeOf)... and we do this up to 128 times per FST (= per indexed field, per segment, for the terms index).
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org