xiaoyifang / goldendict-ng

The Next Generation GoldenDict
https://xiaoyifang.github.io/goldendict-ng/
Other
1.71k stars 95 forks source link

opt: mdx -> avoid duplicated Adler-32 checksum in zlib decompression #1932

Closed shenlebantongying closed 1 week ago

shenlebantongying commented 1 week ago

close https://github.com/xiaoyifang/goldendict-ng/issues/1775

Micro optimization, remove one extra data traversing.

Adler-32 is a rolling hash calculated together with the inflating process.

Fix various small issues

sonarcloud[bot] commented 1 week ago

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud