Closed melissalinkert closed 1 year ago
8988246 adds a simple roundtrip compression/decompression sanity check for ZLIB which will fail with 0b3616d alone. 3e488d7 fixes the test failure, so I'd hope that this now passes the build. Expanding the roundtrip test to cover more codecs or edge cases might be a good idea for the future (not sure if we can migrate anything from bioformats).
The changes here seem to affect the consumption of ZlibCodec
by NativeND2Reader
under certain conditions - see https://web-proxy.openmicroscopy.org/east-ci/job/BIOFORMATS-test-folder/29043/console. Excluding for now to reduce the number of failures, feel free to re-include in the builds once a fix is pushed.
f3aad26 should fix the tests, but re-including isn't urgent so probably makes sense to wait until things are a little quieter.
As discussed during the weekly Formats meeting, given this PR does not substantially improve performance, closing for now as no additional work is planned immediately.
Partial backport from a private PR.
ByteVector
doesn't have any functionality not present inByteArrayHandle
. This commit lets us to measure the impact of switching toByteArrayHandle
in an isolated case, which would allow for an informed decision about whether it makes sense to deprecateByteVector
.With a *.C01 file from
data_repo/curated/cellomics/
(e.g. anything in theomar
subdirectory) and test code similar to:there shouldn't be a statistically significant difference in performance with or without this PR. If performance is noticeably worse or there are other reasons to continue using
ByteVector
, this can be closed outright.