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

When we move to java 1.5 in 3.0 we should replace all Interger, Long, etc construction with .valueOf

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      -128 to 128 are guaranteed to be cached and using valueOf in that case is 3.5 times faster than using contructor

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              uschindler Uwe Schindler
              Reporter:
              markrmiller@gmail.com Mark Miller

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment