[
https://issues.apache.org/jira/browse/LUCENE-2084?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12794588#action_12794588
]
Steven Rowe commented on LUCENE-2084:
-------------------------------------
To run the benchmark:
# Unpack {{collation.benchmark.tar.bz2}} in a full Lucene-java tree into the
{{contrib/benchmark/}} directory. All contents will be put under a new
directory named {{collation/}}.
# Compile and jarify the localized (ICU)CollationKeyAnalyzer code: from the
{{collation/}} directory, run the script {{build.test.analyzer.jar.sh}}.
# From an unpatched {{java/trunk/}}, build Lucene's jars: {{ant clean package}}.
# From the {{contrib/benchmark/}} directory, run the collation benchmark:
{{collation/run-benchmark.sh > unpatched.collation.bm.table.txt}}
# Apply the attached patch to the Lucene-java tree
# From {{java/trunk/}}, build Lucene's jars: {{ant clean package}}.
# From the {{contrib/benchmark/} directory, run the collation benchmark:
{{collation/run-benchmark.sh > patched.collation.bm.table.txt}}
# Produce the comparison table:
{{collation/compare.collation.benchmark.tables.pl
unpatched.collation.bm.table.txt patched.collation.bm.table.txt >
collation.diff.bm.table.txt}}
> remove Byte/CharBuffer wrapping for collation key generation
> ------------------------------------------------------------
>
> Key: LUCENE-2084
> URL: https://issues.apache.org/jira/browse/LUCENE-2084
> Project: Lucene - Java
> Issue Type: Improvement
> Components: contrib/*
> Reporter: Robert Muir
> Assignee: Robert Muir
> Priority: Minor
> Fix For: 3.1
>
> Attachments: collation.benchmark.tar.bz2, LUCENE-2084.patch,
> LUCENE-2084.patch
>
>
> We can remove the overhead of ByteBuffer and CharBuffer wrapping in
> CollationKeyFilter and ICUCollationKeyFilter.
> this patch moves the logic in IndexableBinaryStringTools into char[],int,int
> and byte[],int,int based methods, with the previous Byte/CharBuffer methods
> delegating to these.
> Previously, the Byte/CharBuffer methods required a backing array anyway.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]