-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve perfomance of ComputeWinCount
As it turns out `big.Int#Mul` doesn't like it when you reuse input as output. ``` name old time/op new time/op delta WinCounts-8 4.56µs ± 1% 3.90µs ± 2% -14.44% (p=0.000 n=9+10) name old alloc/op new alloc/op delta WinCounts-8 3.50kB ± 0% 1.15kB ± 0% -67.23% (p=0.000 n=10+10) name old allocs/op new allocs/op delta WinCounts-8 45.0 ± 0% 24.0 ± 0% -46.67% (p=0.000 n=10+10) ``` Signed-off-by: Jakub Sztandera <[email protected]>
- Loading branch information
Jakub Sztandera
committed
Jun 22, 2020
1 parent
266c72a
commit 8df2e78
Showing
2 changed files
with
30 additions
and
7 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