Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
slices: change implementation for Clone()
Change the implementation of slices Clone. It's 28% faster on my laptop. As discussed in #57433 (comment), no extra issue is needed for this simple fix. goos: darwin goarch: arm64 pkg: github.com/David-Mao/Euclid/Go/utils │ old.txt │ new.txt │ │ sec/op │ sec/op vs base │ Clone-12 16.95n ± 1% 12.06n ± 2% -28.85% (p=0.000 n=10)
- Loading branch information