Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
regexp: don't allocate when All methods find no matches
name old time/op new time/op delta FindAllNoMatches-8 216ns ± 3% 122ns ± 2% -43.52% (p=0.000 n=10+10) name old alloc/op new alloc/op delta FindAllNoMatches-8 240B ± 0% 0B -100.00% (p=0.000 n=10+10) name old allocs/op new allocs/op delta FindAllNoMatches-8 1.00 ± 0% 0.00 -100.00% (p=0.000 n=10+10) This work was supported by Sourcegraph. Change-Id: I30aac201370ccfb40a6ff637402020ac20f61f70 Reviewed-on: https://go-review.googlesource.com/87418 Run-TryBot: Josh Bleecher Snyder <firstname.lastname@example.org> Reviewed-by: Brad Fitzpatrick <email@example.com> Reviewed-by: Daniel Martí <firstname.lastname@example.org> TryBot-Result: Gobot Gobot <email@example.com>
- Loading branch information
Showing with 45 additions and 32 deletions.