Uploaded image for project: 'Commons Imaging'
  1. Commons Imaging
  2. IMAGING-356

TIFF reading extremely slow in version 1.0-SNAPSHOT

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.0.0-alpha5
    • None
    • Format: TIFF
    • None

    Description

      I am using the latest code from github (1.0-SNAPSHOT downloaded from github of June 2023) to read a 300 megabyte TIFF file.  Version 1.0-alpha3 required 673 milliseconds to read that file.  The new code requires upward of 15 minutes.   Clearly something got broken since the last release.

      The TIFF file is a 10000x10000 pixel 4 byte image format organized in strips.  The bottleneck appears to occur in the TiffReader getTiffRawImageData method which reads raw data from the file in preparation of creating a BufferedImage object.

      I suspect that there may be a general slowness of file access.  In debugging, even reading the initial metadata (22 TIFF tags) took a couple of seconds.  

      Attachments

        1. image-2023-07-04-08-52-36-535.png
          1.23 MB
          Gary D. Gregory

        Activity

          People

            Unassigned Unassigned
            gwlucas Gary Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: