forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1579862 - Tweaking HuffmanTableImplementationSaturated;r=arai
A few changes to HuffmanTableImplementationSaturated: - we can now create instances of HuffmanTableImplementationSaturated with max bit lengths up to 10; - we reject cases in which we have more than 256 elements; - internal indices in HuffmanTableImplementationSaturated are now represented with uint8_t instead of usize_t, which divides the size of this array by 4 and should improve memory locality. According to my benchmarking, this decreases duration by ~7%. Depends on D45644 Differential Revision: https://phabricator.services.mozilla.com/D45722 --HG-- extra : moz-landing-system : lando
David Teller
committed
Sep 13, 2019
1 parent
01cf344
commit 37fa21b
Showing
2 changed files
with
51 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters