JDK-8061837 : Extends DecimalFormat.format optimization to the HALF_UP/HALF_DOWN rounding cases
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.text
  • Affected Version: 9
  • Priority: P5
  • Status: Closed
  • Resolution: Won't Fix
  • OS: generic
  • CPU: generic
  • Submitted: 2014-10-22
  • Updated: 2022-08-09
  • Resolved: 2022-08-09
Related Reports
Relates :  
Description
The DecimalFormat.format(double, ...) optimization that has been provided in JDK (see JDK-7050528) is available only for the HALF_EVEN rounding. HALF_UP and HALF_DOWN rounding still use the slow path.

While HALF_EVEN rounding mode is the rounding case that is mainly and mostly used, this means that there are throughput inconsistencies for floating-point values that are in the integer range depending on the rounding case used.

Recent customer feedback has shown that HALF_UP and HALF_DOWN rounding cases are also used in business applications.

Extending this optimization to the HALF_UP and HALF_DOWN rounding does not need a lot of work.

To avoid any usability issue  between these rounding modes due to this throughput difference (x10 factor) it would be good to extend the optimization to HALF_UP/_DOWN rounding cases.
Comments
Closing as will not fix after being unresolved for many years. If there is renewed interest in this work, please reopen.
09-08-2022

Work is on stand-by at the moment
01-10-2015

Fix understood
24-10-2014