-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes #920 Consistently cuts encoding time by 10-50%. Before the change: ``` Running benches/alp_compress.rs (target/release/deps/alp_compress-abbdaefc5eabf343) Timer precision: 41 ns alp_compress fastest │ slowest │ median │ mean │ samples │ iters ├─ alp_compress │ │ │ │ │ │ ├─ f32 │ │ │ │ │ │ │ ├─ 100000 191.9 µs │ 824.9 µs │ 314.7 µs │ 354 µs │ 100 │ 100 │ │ ╰─ 10000000 21.39 ms │ 28.95 ms │ 21.71 ms │ 21.89 ms │ 100 │ 100 │ ╰─ f64 │ │ │ │ │ │ ├─ 100000 236 µs │ 353.7 µs │ 238.4 µs │ 246.4 µs │ 100 │ 100 │ ╰─ 10000000 28.78 ms │ 68.68 ms │ 29.49 ms │ 29.93 ms │ 100 │ 100 ``` After: ``` Running benches/alp_compress.rs (target/release/deps/alp_compress-abbdaefc5eabf343) Timer precision: 41 ns alp_compress fastest │ slowest │ median │ mean │ samples │ iters ├─ alp_compress │ │ │ │ │ │ ├─ f32 │ │ │ │ │ │ │ ├─ 100000 161 µs │ 234.6 µs │ 163.3 µs │ 166 µs │ 100 │ 100 │ │ ╰─ 10000000 18.72 ms │ 21.54 ms │ 19.07 ms │ 19.14 ms │ 100 │ 100 │ ╰─ f64 │ │ │ │ │ │ ├─ 100000 182 µs │ 346 µs │ 183.9 µs │ 187.9 µs │ 100 │ 100 │ ╰─ 10000000 23.98 ms │ 28.71 ms │ 24.52 ms │ 24.53 ms │ 100 │ 100 ```
- Loading branch information
1 parent
b95a2af
commit a7fd730
Showing
2 changed files
with
137 additions
and
47 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