Issues

Select view

Select search mode

 
22 of 22

Sentinel-2 L1B reader takes too long time to open zipped product due to JP2 reader bottleneck

Done

Description

Issue detected when opening a Sentinel-2 L1B zipped product.

The current implementation of JP2FileReader class uses an array of bytes as a buffer when reading the file content to extract the xml data.
When reading a new buffer from a file stored into a zip archive, an input stream is opened and the file pointer is therefore in the first position. Then the file content is read in order to move the file pointer on a certain position.
The zip file system provider (used to access the archive data) does not support moving the file pointer on a certain position.

The algorithm to read the xml data should open only once an input stream and by means of a buffered input stream each byte should be read to find the xml data.

Environment

None

GitHub Work

None

Details

Assignee

Reporter

Fix versions

Affects versions

Components

Priority

Created 19 June 2019 at 15:10
Updated 10 February 2023 at 14:27
Resolved 10 February 2023 at 14:22

Activity

Show:

Marcus Engdahl19 June 2019 at 15:22

Raised to critical as it affects performance for all users

Flag notifications