RFR [8042990] Optimize conversion to hex string (original) (raw)
Claes Redestad claes.redestad at oracle.com
Sat Jun 14 21:23:02 UTC 2014
- Previous message: RFR [8042990] Optimize conversion to hex string
- Next message: RFR [9] 8041972: Add improved parse/format methods for Long/Integer
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
I'd just want to point out that there is an open bug and proposed patch to optimize UUID even further (which would conflict with your patch): https://bugs.openjdk.java.net/browse/JDK-8006627
Wouldn't it generally be better to break apart library changes (Integer/Long) from applied optimizations to ease backporting etc?
/Claes
On 2014-06-14 23:00, Ivan Gerasimov wrote:
Hello!
There is a method Integer.toHexString(int), which produce a string with no extra leading zeroes. I found a couple of places in jdk, where it would be useful to have a variant of the method which pads the result with the required amount of zeroes. Would you please take at the webrev? http://cr.openjdk.java.net/~igerasim/8042990/0/webrev/ It includes implementations of Integer.toHexString(int, int) and Long.toHexString(long, int) with the second argument standing for the minimum width of the produced string. It also contains a few replacements of the same behaving code with calls to these new methods. Sincerely yours, Ivan
- Previous message: RFR [8042990] Optimize conversion to hex string
- Next message: RFR [9] 8041972: Add improved parse/format methods for Long/Integer
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]