JDK-6908123 : refactor com.sun.org.apache.xalan.internal.xsltc.runtime.BasicLibrary.substringF() variants
  • Type: Enhancement
  • Component: xml
  • Sub-Component: jaxp
  • Affected Version: 6u17
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2009-12-07
  • Updated: 2013-11-01
  • Resolved: 2010-07-02
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other JDK 7
1.4.0 1.4Fixed 7Fixed
Related Reports
Relates :  
Description
These two methods could be refactored to avoid unnecessary calls to Math.round(double).  In workloads which make frequent calls to these two methods could experience high sys CPU time if Math.round(double) if what Math.round(double) calls invokes native methods.

com.sun.org.apache.xalan.internal.xsltc.runtime.BasicLibrary.substringF(String,double,double)
com.sun.org.apache.xalan.internal.xsltc.runtime.BasicLibrary.substringF(String,double)

It is also possible a modern JVM's JIT compiler could better optimize a refactored version.

Comments
EVALUATION Patch verified.
02-07-2010