Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-1607

String.intern() faster alternative

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.9
    • None
    • None
    • New, Patch Available

    Description

      By using our own interned string pool on top of default, String.intern() can be greatly optimized.

      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.

      Attachments

        1. LUCENE-1607.patch
          2 kB
          Noble Paul
        2. LUCENE-1607-contrib.patch
          3 kB
          Uwe Schindler
        3. LUCENE-1607.patch
          10 kB
          Yonik Seeley
        4. LUCENE-1607.patch
          6 kB
          Yonik Seeley
        5. LUCENE-1607.patch
          5 kB
          Yonik Seeley
        6. LUCENE-1607.patch
          5 kB
          Yonik Seeley
        7. LUCENE-1607.patch
          5 kB
          Yonik Seeley
        8. LUCENE-1607.patch
          36 kB
          Earwin Burrfoot
        9. LUCENE-1607.patch
          31 kB
          Earwin Burrfoot
        10. LUCENE-1607.patch
          6 kB
          Yonik Seeley
        11. LUCENE-1607.patch
          6 kB
          Yonik Seeley
        12. LUCENE-1607.patch
          5 kB
          Yonik Seeley
        13. intern.patch
          30 kB
          Earwin Burrfoot

        Issue Links

          Activity

            People

              yseeley@gmail.com Yonik Seeley
              earwin Earwin Burrfoot
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: