We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code here can be optimized:
goldendict-ng/src/dict/mdictparser.cc
Lines 250 to 257 in 2b98b50
The z_stream in zlibDecompress has a field adler
z_stream
zlibDecompress
adler
goldendict-ng/src/decompress.cc
Line 10 in 2b98b50
See zlib's doc's inflate
inflate
otherwise it sets strm->adler to the Adler-32 checksum of all output produced so far (that is, total_out bytes)
In other words, zlib's inflate will be rolling a alder for final checksum and there is no need to go over the decompressed data to compute it again.
alder
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Code here can be optimized:
goldendict-ng/src/dict/mdictparser.cc
Lines 250 to 257 in 2b98b50
The
z_stream
inzlibDecompress
has a fieldadler
goldendict-ng/src/decompress.cc
Line 10 in 2b98b50
See zlib's doc's
inflate
In other words, zlib's
inflate
will be rolling aalder
for final checksum and there is no need to go over the decompressed data to compute it again.The text was updated successfully, but these errors were encountered: