lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] Updated: (LUCENE-2265) improve automaton performance by running on byte[]
Date Mon, 05 Apr 2010 19:48:27 GMT


Michael McCandless updated LUCENE-2265:

    Attachment: LUCENE-2265.patch

Attached patch for first cut at APIs to convert a UTF32 automaton to UTF8.

There's a test case that verifies the conversion is working correctly.  It seems to be working.

This patch is just the low level API, ie, converting one edge containing a UTF32 range.  I
still need to fix it to convert an entire UTF32 DFA... should be straightforward.

Also, I need to merge with Robert's int (UTF32) cutover and a UTF8RunAutomaton.

> improve automaton performance by running on byte[]
> --------------------------------------------------
>                 Key: LUCENE-2265
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>    Affects Versions: Flex Branch
>            Reporter: Robert Muir
>            Priority: Minor
>             Fix For: Flex Branch
>         Attachments: LUCENE-2265.patch, LUCENE-2265.patch, LUCENE-2265_pare.patch
> Currently, when enumerating terms, automaton must convert entire terms from flex's native
utf-8 byte[] to char[] first, then step each char thru the state machine.
> we can make this more efficient, by allowing the state machine to run on byte[], so it
can return true/false faster.

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:
For additional commands, e-mail:

View raw message