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

Issue 3971041: code review 3971041: godoc: peephole optimization for generated HTML (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 2 months ago by gri
Modified:
13 years, 8 months ago
Reviewers:
r
CC:
rsc, golang-dev
Visibility:
Public.

Description

godoc: peephole optimization for generated HTML When searching for regular expressions such as ".", there are many consecutive matches. In the generated HTML, combine them instead of generating a new <span> for each adjacent text segment highlighting a match. Massively reduces the size of the generated HTML in those cases.

Patch Set 1 #

Patch Set 2 : code review 3971041: godoc: peephole optimization for generated HTML #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -12 lines) Patch
M src/cmd/godoc/format.go View 1 4 chunks +48 lines, -12 lines 1 comment Download

Messages

Total messages: 5
gri
Hello r (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 2 months ago (2011-01-13 00:58:43 UTC) #1
rsc
LGTM
14 years, 2 months ago (2011-01-13 18:16:39 UTC) #2
gri
*** Submitted as http://code.google.com/p/go/source/detail?r=c68ede6c8e86 *** godoc: peephole optimization for generated HTML When searching for regular ...
14 years, 2 months ago (2011-01-13 18:23:49 UTC) #3
r
LGTM http://codereview.appspot.com/3971041/diff/3001/src/cmd/godoc/format.go File src/cmd/godoc/format.go (right): http://codereview.appspot.com/3971041/diff/3001/src/cmd/godoc/format.go#newcode96 src/cmd/godoc/format.go:96: // the last segment is not adjacent or ...
14 years, 2 months ago (2011-01-13 18:24:30 UTC) #4
gri
14 years, 2 months ago (2011-01-13 18:26:09 UTC) #5
will fix in next CL
- gri

On Thu, Jan 13, 2011 at 10:24 AM, <r@golang.org> wrote:

> LGTM
>
>
> http://codereview.appspot.com/3971041/diff/3001/src/cmd/godoc/format.go
> File src/cmd/godoc/format.go (right):
>
>
>
http://codereview.appspot.com/3971041/diff/3001/src/cmd/godoc/format.go#newco...
> src/cmd/godoc/format.go:96: // the last segment is not adjacent or
> s/adjacent/adjacent to/
>
> http://codereview.appspot.com/3971041/
>
Sign in to reply to this message.

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