[ https://issues.apache.org/jira/browse/LUCENE-3830?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael McCandless updated LUCENE-3830: --------------------------------------- Attachment: PerfTestMappingCharFilter.java LUCENE-3830.patch New patch: I made a simple perf test (attached: PerfTestMappingCharFilter.java), and found the FST was slower... I fixed RollingCharBuffer to bulk read, and also pre-cache the FST arcs in a HashMap (FST pre-caches only latin bytes), and now perf is a bit faster. I also switched to builder API (like SynFilter) so the NormalizeCharMap instance is immutable. I think it's ready! We can separately improve the matching algo based on the 23 page paper... > MappingCharFilter could be improved by switching to an FST. > ----------------------------------------------------------- > > Key: LUCENE-3830 > URL: https://issues.apache.org/jira/browse/LUCENE-3830 > Project: Lucene - Java > Issue Type: Improvement > Reporter: Dawid Weiss > Assignee: Michael McCandless > Priority: Minor > Labels: gsoc2012, lucene-gsoc-12 > Fix For: 4.0 > > Attachments: LUCENE-3830.patch, LUCENE-3830.patch, > PerfTestMappingCharFilter.java > > > MappingCharFilter stores an overly complex tree-like structure for matching > input patterns. The input is a union of fixed strings mapped to a set of > fixed strings; an fst matcher would be ideal here and provide both memory and > speed improvement I bet. -- 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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org