Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6908123

refactor com.sun.org.apache.xalan.internal.xsltc.runtime.BasicLibrary.substringF() variants

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 6u17
    • Fix Version/s: 1.4.0
    • Component/s: xml
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      1.4
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        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.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                joehw Joe Wang
                Reporter:
                huntch Charlie Hunt
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: