]> Cypherpunks repositories - gostls13.git/commit
add a match arena to regexp to avoid generating garbage.
authorRob Pike <r@golang.org>
Fri, 20 Nov 2009 07:12:01 +0000 (23:12 -0800)
committerRob Pike <r@golang.org>
Fri, 20 Nov 2009 07:12:01 +0000 (23:12 -0800)
commitc62069cc1f0bfcf8571eae63d3a7fe662c1bba41
treec6972b73506df92a3543e97eb8e21a276bf63653
parentb30f753dc36ed55207295bc8e6dbadca305339a9
add a match arena to regexp to avoid generating garbage.
simple regexps run 20x faster.
the regex-dna benchmark goes 3x faster.

R=rsc
CC=golang-dev
https://golang.org/cl/156108
src/pkg/regexp/all_test.go
src/pkg/regexp/regexp.go