Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(99)

Issue 110020045: code review 110020045: regexp: use sync.Pool for machine cache

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 4 months ago by bradfitz
Modified:
11 years, 4 months ago
Reviewers:
r, gobot, rsc, dvyukov
CC:
golang-codereviews, jrockway
Visibility:
Public.

Description

regexp: use sync.Pool for machine cache Controversial. For discussion. benchmark old ns/op new ns/op delta BenchmarkMachineCacheParallel 1514 1514 +0.00% BenchmarkMachineCacheParallel-2 907 825 -9.04% BenchmarkMachineCacheParallel-4 595 433 -27.23% BenchmarkMachineCacheParallel-8 591 364 -38.41% Fixes Issue 8232

Patch Set 1 #

Patch Set 2 : diff -r a507dd224581 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r a507dd224581 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -12 lines) Patch
M src/pkg/regexp/all_test.go View 1 1 chunk +10 lines, -0 lines 0 comments Download
M src/pkg/regexp/regexp.go View 1 3 chunks +5 lines, -12 lines 0 comments Download

Messages

Total messages: 7
bradfitz
Hello rsc@golang.org, r@golang.org (cc: golang-codereviews@googlegroups.com, jrockway@google.com), I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 4 months ago (2014-06-18 18:06:03 UTC) #1
r
LGTM but wait for rsc I was sitting at my desk waiting for you to ...
11 years, 4 months ago (2014-06-18 18:11:41 UTC) #2
bradfitz
On Wed, Jun 18, 2014 at 11:11 AM, <r@golang.org> wrote: > LGTM but wait for ...
11 years, 4 months ago (2014-06-18 18:13:20 UTC) #3
dvyukov
AFAIR the discussion last time was along the lines of: It is a degradation for ...
11 years, 4 months ago (2014-06-18 19:43:36 UTC) #4
rsc
not lgtm. We rolled this back once already.
11 years, 4 months ago (2014-06-18 19:44:10 UTC) #5
r
Apologies, I misread this CL and stupidly saw the cache as a global, not per-Regexp. ...
11 years, 4 months ago (2014-06-19 05:39:16 UTC) #6
gobot
11 years, 4 months ago (2014-07-07 21:58:49 UTC) #7
R=close (assigned by r@golang.org)
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b