lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dawid Weiss (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-871) ISOLatin1AccentFilter a bit slow
Date Mon, 20 Aug 2007 19:17:31 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-871?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12521201
] 

Dawid Weiss commented on LUCENE-871:
------------------------------------

Not exactly true, Mike. Switch statements are implemented as table lookups (tableswitch opcode)
or binary sort switches (lookupswitch) -- depending on the sparseness of keys used in the
case clauses I'm sure, don't have the time to dig out my copy of the JVM spec right now.

In any case, I'm pretty sure what Staszek says is correct and will be more efficient -- I've
had that in practice and doing manual lookup instead of a switch (with multiple branches,
wide spectrum) was _much_ faster (an order of magnitude in my case).

> 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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message