-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apd: Improve string conversion efficiency
Prefer to use Append and allocate scratch space to improve speed and efficiency of string conversion: ``` name old time/op new time/op delta DecimalString-10 147ns ± 1% 56ns ± 4% -62.14% (p=0.000 n=10+10) name old alloc/op new alloc/op delta DecimalString-10 84.0B ± 0% 39.0B ± 0% -53.57% (p=0.000 n=10+10) name old allocs/op new allocs/op delta DecimalString-10 5.00 ± 0% 1.00 ± 0% -80.00% (p=0.000 n=10+10) ```
- Loading branch information
Yevgeniy Miretskiy
committed
Oct 17, 2022
1 parent
e2030eb
commit 9d47f6a
Showing
2 changed files
with
30 additions
and
10 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