Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-3768

Make EmbedBlob.length use skip instead of read

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.5.1.1
    • 10.4.2.0, 10.5.1.1
    • JDBC
    • None
    • Performance

    Description

      EmbedBlob.length uses read to process the whole Blob when the length has not been encoded at the head of the stream.
      Using skip instead of read can lead to better performance.

      I also plan to make some minor cleanups under this issue; JavaDoc and to rename a variable.

      Attachments

        1. derby-3768-1a-length_skip.diff
          2 kB
          Kristian Waagan
        2. derby-3768-1b-length_skip.diff
          2 kB
          Kristian Waagan
        3. derby-3768-2a-misc_fixes.diff
          5 kB
          Kristian Waagan

        Activity

          People

            kristwaa Kristian Waagan
            kristwaa Kristian Waagan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: