Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
Description
As shown in the figure, a buffer for uncompression is created even if NO_COMPRESSOR is used, which incurs unnecessary memory allocation and copy.
The solution is to skip the decompression process completely when NO_COMPRESSOR is used. Similar problems may be detected during the write process and should be examined with care.