lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Miller (JIRA)" <>
Subject [jira] Commented: (LUCENE-1607) String.intern() faster alternative
Date Sun, 19 Apr 2009 16:52:47 GMT


Mark Miller commented on LUCENE-1607:

What was the field count? Is it still a considerable speedup with hundreds of fields without
slowing anything else down ?(I would assume so, but would be nice to know considering a new
hashmap is made per add - it is a one time hit though and the number of fields is not likely
to exceed hundreds at the extreme)?

Also would be great to get the speedup numbers for Java 4 and 5.

I'll relate this to the 3 or 4 other field intern issues out there in a bit.

> String.intern() faster alternative
> ----------------------------------
>                 Key: LUCENE-1607
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Earwin Burrfoot
>             Fix For: 2.9
>         Attachments: intern.patch
> By using our own interned string pool on top of default, String.intern() can be greatly
> On my setup (java 6) this alternative runs ~15.8x faster for already interned strings,
and ~2.2x faster for 'new String(interned)'
> For java 5 and 4 speedup is lower, but still considerable.

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