[
https://issues.apache.org/jira/browse/LUCENE-871?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12521350
]
Dawid Weiss commented on LUCENE-871:
------------------------------------
Funny -- I just did the same, but my compiler (Eclipse JDT) generated a
lookupswitch from head --
//* 52 93:iload 7
{
//* 53 95:lookupswitch 65: default 1275
// 192: 624
// 193: 624
// 194: 624
I also peeked at JVM's sources. Lookupswitches can be compiled (in hotspot
mode) into two internal JVM instructions -- fast_linearswitch or
fast_binaryswitch. Depending on the selection you either get the O(1)
acceleration or not. I still think it could be worthwhile to try to boost the
performance of this method, although the gain might be minimal.
> ISOLatin1AccentFilter a bit slow
> --------------------------------
>
> Key: LUCENE-871
> URL: https://issues.apache.org/jira/browse/LUCENE-871
> Project: Lucene - Java
> Issue Type: Bug
> Components: Analysis
> Affects Versions: 1.9, 2.0.0, 2.0.1, 2.1, 2.2
> Reporter: Ian Boston
> Assignee: Michael McCandless
> Fix For: 2.3
>
> Attachments: fasterisoremove1.patch, fasterisoremove2.patch,
> ISOLatin1AccentFilter.java.patch, LUCENE-871.take4.patch
>
>
> The ISOLatin1AccentFilter is a bit slow giving 300+ ms responses when used in
> a highligher for output responses.
> Patch to follow
--
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]