Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
interp: avoid dirStack allocation at start-up
An easy win for programs that don't use pushd. We also avoid the allocation in Runner.sub, when creating subshells. name old time/op new time/op delta Run-8 1.45ms ± 1% 1.45ms ± 1% ~ (p=0.818 n=6+6) name old alloc/op new alloc/op delta Run-8 180kB ± 0% 180kB ± 0% ~ (p=0.931 n=5+6) name old allocs/op new allocs/op delta Run-8 1.05k ± 0% 1.04k ± 0% -0.38% (p=0.002 n=6+6)
- Loading branch information