]> Cypherpunks repositories - gostls13.git/commit
regexp: use slices to simplify the code
authorapocelipes <seve3r@outlook.com>
Mon, 25 Mar 2024 05:58:00 +0000 (05:58 +0000)
committerEmmanuel Odeke <emmanuel@orijtech.com>
Mon, 25 Mar 2024 19:36:03 +0000 (19:36 +0000)
commit8ed0d35fef275ddae39285000bf0e27f5f431d81
tree9aa53b7e23eb108df1667b8ddae76e914abec141
parentb37fb8c6ca3ef108248798487df5b058b4877cd2
regexp: use slices to simplify the code

Replace some "reflect.DeepEqual" calls in the tests with
"slices.Equal" which is much faster for slice comparisons.

Remove unnecessary "runeSlice" and redundant helper functions.

Change-Id: Ib5dc41848d7a3c5149f41701d60471a487cff476
GitHub-Last-Rev: 87b5ed043d2935b971aa676cc52b9b2c5b45736b
GitHub-Pull-Request: golang/go#66509
Reviewed-on: https://go-review.googlesource.com/c/go/+/573977
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: qiulaidongfeng <2645477756@qq.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/regexp/all_test.go
src/regexp/exec_test.go
src/regexp/onepass.go
src/regexp/onepass_test.go