-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The main idea here is to do as much as possible with slices, instead of allocating new BigUints (= heap allocations). Current performance: multiply_0: 7,137 ns/iter (+/- 620) multiply_1: 2,104,565 ns/iter (+/- 255,208) multiply_2: 51,620,572 ns/iter (+/- 2,707,818) After this patch, we get: multiply_0: 4,224 ns/iter (+/- 635) multiply_1: 198,155 ns/iter (+/- 28,722) multiply_2: 31,541,853 ns/iter (+/- 4,978,257)
- Loading branch information
1 parent
1c2f8bc
commit 6e2f21e
Showing
1 changed file
with
107 additions
and
58 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