[
https://issues.apache.org/jira/browse/LUCENE-1833?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Uwe Schindler updated LUCENE-1833:
----------------------------------
Attachment: LUCENE-1833.patch
This patch changes all "new Number(" code parts with "Number.valueOf(" (changed
using find/sed). All tests pass.
I want to commit this as soon as possible, because it affects lots of files and
I do not want to get this patch outdated. The StringBuffer from previous
comment is in another issue.
> When we move to java 1.5 in 3.0 we should replace all Interger, Long, etc
> construction with .valueOf
> ----------------------------------------------------------------------------------------------------
>
> Key: LUCENE-1833
> URL: https://issues.apache.org/jira/browse/LUCENE-1833
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Mark Miller
> Assignee: Uwe Schindler
> Priority: Trivial
> Fix For: 3.0
>
> Attachments: LUCENE-1833.patch
>
>
> -128 to 128 are guaranteed to be cached and using valueOf in that case is 3.5
> times faster than using contructor
--
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: [email protected]
For additional commands, e-mail: [email protected]