Re: [cp-patches] RFC: changes to java.lang.Integer, Long...

2008-06-03 Thread Ian Rogers
Andrew Haley wrote: Ian Rogers wrote: please give your comments on the attached patch. It tries to reduce the size of char[] for strings used to hold numbers. It changes Float/Double equals to use bit based comparisons rather than division. It increases the use of valueOf methods. It adds a

Re: [cp-patches] RFC: changes to java.lang.Integer, Long...

2008-06-03 Thread Robert Schuster
Hi, Andrew John Hughes schrieb: > I'd second that. Are there clear performance benefits to justify > creating 256 objects ahead of time? > Not only does that introduce an overhead in initialising the Long > class, but it also results in increased > memory usage for all applications. > > I'd als

Re: [cp-patches] RFC: changes to java.lang.Integer, Long...

2008-06-03 Thread Andrew John Hughes
2008/6/3 Andrew Haley <[EMAIL PROTECTED]>: > Ian Rogers wrote: > >> please give your comments on the attached patch. It tries to reduce the >> size of char[] for strings used to hold numbers. It changes Float/Double >> equals to use bit based comparisons rather than division. It increases >> the us

Re: [cp-patches] RFC: changes to java.lang.Integer, Long...

2008-06-03 Thread Andrew Haley
Ian Rogers wrote: > please give your comments on the attached patch. It tries to reduce the > size of char[] for strings used to hold numbers. It changes Float/Double > equals to use bit based comparisons rather than division. It increases > the use of valueOf methods. It adds a cache of values fr

Re: [cp-patches] RFC: changes to java.lang.Integer, Long...

2008-04-18 Thread Ian Rogers
Committed. 2008-04-18 Ian Rogers <[EMAIL PROTECTED]> * java/lang/Byte.java (static): initialize byteCache. (valueOf(String,int)): use valueOf(byte) rather than new. (valueOf(String)): likewise. (valueOf(byte)): Switch from lazy initialization of cached values to

Re: [cp-patches] RFC: changes to java.lang.Integer, Long...

2008-04-14 Thread Ian Rogers
David Daney wrote: Ian Rogers wrote: Hi, please give your comments on the attached patch. It tries to reduce the size of char[] for strings used to hold numbers. It changes Float/Double equals to use bit based comparisons rather than division. It increases the use of valueOf methods. It adds

Re: [cp-patches] RFC: changes to java.lang.Integer, Long...

2008-04-14 Thread David Daney
Ian Rogers wrote: Hi, please give your comments on the attached patch. It tries to reduce the size of char[] for strings used to hold numbers. It changes Float/Double equals to use bit based comparisons rather than division. It increases the use of valueOf methods. It adds a cache of values f