forked from mvdan/sh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
interp: reuse copy buffers for pipes
Practically no effect on time/op and allocs/op, but the amount of space allocated per benchmark run gets dramatically reduced. name old time/op new time/op delta Run-8 1.46ms ± 1% 1.45ms ± 1% ~ (p=0.180 n=6+6) name old alloc/op new alloc/op delta Run-8 179kB ± 0% 80kB ± 0% -55.17% (p=0.002 n=6+6) name old allocs/op new allocs/op delta Run-8 1.03k ± 0% 1.04k ± 0% +0.78% (p=0.004 n=6+5)
- Loading branch information
Showing
1 changed file
with
25 additions
and
5 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