lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-1833) When we move to java 1.5 in 3.0 we should replace all Interger, Long, etc construction with .valueOf
Date Thu, 20 Aug 2009 22:48:14 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-1833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12745708#action_12745708
] 

Uwe Schindler commented on LUCENE-1833:
---------------------------------------

...and also StringBuffers!

> 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
>            Priority: Trivial
>             Fix For: 3.0
>
>
> -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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message