[
https://issues.apache.org/jira/browse/IMAGING-356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17739377#comment-17739377
]
Gary Lucas commented on IMAGING-356:
------------------------------------
The glitch in the Allocator class is that there are a couple of non UTF-8 valid
characters in the Javadoc. So it doesn't affect anything code-wise and doesn't
urgently require attention. I might submit a PR at some point.
The speed and memory test isn't a JUnit test. It's a tool for developers.
It's remarkable how many "good ideas" about improving performance do no such
thing, So it was useful to have an unambiguous benchmark to measure stuff. We
were interested in looking at aerial photographs for geospatial analysis logic.
I spent weeks trying to get the Imaging performance to the point where it was
useful in an application. It was quite the learning experience.... Since
then, I always encourage folks to do benchmarking as well as JUnit tests.
> TIFF reading extremely slow in version 1.0-SNAPSHOT
> ---------------------------------------------------
>
> Key: IMAGING-356
> URL: https://issues.apache.org/jira/browse/IMAGING-356
> Project: Commons Imaging
> Issue Type: Bug
> Components: Format: TIFF
> Affects Versions: 1.0
> Reporter: Gary Lucas
> Priority: Major
>
> 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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)