]> Cypherpunks repositories - gostls13.git/commit
move evaluation of null-matching instructions one iteration earlier.
authorRob Pike <r@golang.org>
Sat, 14 Nov 2009 20:23:24 +0000 (12:23 -0800)
committerRob Pike <r@golang.org>
Sat, 14 Nov 2009 20:23:24 +0000 (12:23 -0800)
commit0263103a052b7964aaa283c81550f639da436d52
tree8c896b5a6dd6f83007d9c5a572521e27b16b6b07
parentbad9738be629123a8fed32fde71b9e3b59c286cc
move evaluation of null-matching instructions one iteration earlier.
performance hit of about 20% but more intuitive results for submatches.
we need a good regexp package at some point.

Fixes #110.

R=rsc
CC=golang-dev
https://golang.org/cl/152131
src/pkg/regexp/all_test.go
src/pkg/regexp/regexp.go
test/bench/timing.log