suffixarray: implememted FindAllIndex regexp search
Implementation uses fast suffixarray lookup to find
initial matches if the regular expression starts with
a suitable prefix without meta characters.
PTAL - fixed this and several other documentation gotcha's On Thu, Dec 16, 2010 at ...
14 years, 6 months ago
(2010-12-17 05:54:21 UTC)
#3
PTAL
- fixed this and several other documentation gotcha's
On Thu, Dec 16, 2010 at 9:47 PM, <r@golang.org> wrote:
> There's a typo in the change description. "Implemented" should have an
> 'n'.
>
>
>
> http://codereview.appspot.com/3720042/
>
http://codereview.appspot.com/3720042/diff/8001/src/pkg/index/suffixarray/suffixarray.go File src/pkg/index/suffixarray/suffixarray.go (right): http://codereview.appspot.com/3720042/diff/8001/src/pkg/index/suffixarray/suffixarray.go#newcode96 src/pkg/index/suffixarray/suffixarray.go:96: // If the regular expression has a prefix of ...
14 years, 6 months ago
(2010-12-17 05:59:14 UTC)
#4
On Thu, Dec 16, 2010 at 10:42 PM, Rob 'Commander' Pike <r@golang.org> wrote: > my ...
14 years, 6 months ago
(2010-12-17 06:56:41 UTC)
#7
On Thu, Dec 16, 2010 at 10:42 PM, Rob 'Commander' Pike <r@golang.org> wrote:
> my point is that for this application, an empty string is pointless
> and expensive to search for. it should just be an error caught higher
> up.
>
Then this FindAllIndex diverges from what regexp.FindAllIndex does for that
case. ok with me, but I wanted to avoid the difference.
LGTM http://codereview.appspot.com/3720042/diff/44001/src/pkg/index/suffixarray/suffixarray.go File src/pkg/index/suffixarray/suffixarray.go (right): http://codereview.appspot.com/3720042/diff/44001/src/pkg/index/suffixarray/suffixarray.go#newcode162 src/pkg/index/suffixarray/suffixarray.go:162: // the indices of possible complete matches; use ...
14 years, 6 months ago
(2010-12-17 21:37:57 UTC)
#15
LGTM http://codereview.appspot.com/3720042/diff/44001/src/pkg/index/suffixarray/suffixarray.go File src/pkg/index/suffixarray/suffixarray.go (right): http://codereview.appspot.com/3720042/diff/44001/src/pkg/index/suffixarray/suffixarray.go#newcode92 src/pkg/index/suffixarray/suffixarray.go:92: // FindAllIndex returns a list of at most ...
14 years, 6 months ago
(2010-12-17 21:43:25 UTC)
#16
Issue 3720042: code review 3720042: suffixarray: implememted FindAllIndex regexp search
(Closed)
Created 14 years, 6 months ago by gri
Modified 13 years, 12 months ago
Reviewers:
Base URL:
Comments: 28