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

Use non analyzed token stream optimization everywhere #6001

Closed
wants to merge 2 commits into from

Commits on Apr 30, 2014

  1. Use non analyzed token stream optimization everywhere

    In the string type, we have an optimization to reuse the StringTokenStream on a thread local when a non analyzed field is used (instead of creating it each time). We should use this across the board on all places where we create a field with a String.
    Also, move to a specific XStringField, that we can reuse StringTokenStream instead of copying it.
    kimchy committed Apr 30, 2014
    Configuration menu
    Copy the full SHA
    068ce76 View commit details
    Browse the repository at this point in the history
  2. use closeable thread local

    not for the close method (since its static), but more for its amortized GC of thread locals
    kimchy committed Apr 30, 2014
    Configuration menu
    Copy the full SHA
    4954bc5 View commit details
    Browse the repository at this point in the history