Re: RFR: 8278831: Use table lookup for the last two bytes in Integer.getChars

2021-12-17 Thread Roger Riggs
On Wed, 15 Dec 2021 23:04:37 GMT, Claes Redestad wrote: > During TemplatedStrings work Jim has noticed that we could probably profit > from reusing the lookup tables also for the 1 or 2 leftmost bytes: > > // We know there are at most two digits left at this point. >

Re: RFR: 8278831: Use table lookup for the last two bytes in Integer.getChars

2021-12-16 Thread Jim Laskey
On Wed, 15 Dec 2021 23:04:37 GMT, Claes Redestad wrote: > During TemplatedStrings work Jim has noticed that we could probably profit > from reusing the lookup tables also for the 1 or 2 leftmost bytes: > > // We know there are at most two digits left at this point. >

RFR: 8278831: Use table lookup for the last two bytes in Integer.getChars

2021-12-16 Thread Claes Redestad
During TemplatedStrings work Jim has noticed that we could probably profit from reusing the lookup tables also for the 1 or 2 leftmost bytes: // We know there are at most two digits left at this point. buf[--charPos] = DigitOnes[-i]; if (i < -9) {