Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-649

Performance: backtracking should preserve char readers for the same bit position if possible

XMLWordPrintableJSON

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.0.0
    • s9
    • Back End
    • None

      Right now, if the parser backtracks to a position p and then begins parsing text there again, even if the encoding is the same, a new DFDLCharReader will be created there at position p for the next parse.

      This is unnecessary and inefficient. Once you have decoded a character at position p for encoding e, there's no reason to ever repeat that.

      We could cache the DFDLCharReader instances, and just reuse them on backtracking if the position and encoding are matching.

              jchab Jessie Chab
              mbeckerle.dfdl Mike Beckerle
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: