Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-2116

Performance regression in xsd:decimal division.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Done
    • Jena 3.17.0, Jena 4.0.0, Jena 4.1.0
    • Jena 4.2.0
    • ARQ
    • None

    Description

      Report from users@ : 2021-06-04

      As a result of JENA-1943, Java BigDecimal division will cause an ArithmeticException when then is no exact decimal result. In the report, division by 3 will mean no exact answer.

      But the change in JENA-1943 (arbitray precision for exact answers) is also desirable. Simply having a quite large division precise (e.g. 100) isn't ideal because e.g. 1/3 returns 0.333333333333333333333333 (precision of 24) currently, not 0.3333...... length about 100.

      Also, there is an unnecessary canonicalization of a value that is only used in further calculation so the lexical form isn't needed.

      Attachments

        Issue Links

          Activity

            People

              andy Andy Seaborne
              andy Andy Seaborne
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: