Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unicode segmenter performance #1703

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Aug 12, 2024

  1. Adopt uax29 segmenter

    Replacing blevesearch/segment. ~2x throughput improvement. Refactor allocations, now ~O(1).
    
    Add tests & multilingual sample text to ensure identical behavior. Known differences from previous segmenter:
    - The original segmenter splits runs of spaces into separate tokens; uax29 concatenates runs into a single token.
    - The original segmenter doesn’t handle emoji skin tone modifiers, the new one does, attributable to Unicode version update.
    clipperhouse committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    042b2d8 View commit details
    Browse the repository at this point in the history