Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Issue 3017058: Check in a little toy that graphs history of words in the source. (Closed)

Created:
10 years, 4 months ago by Evan Martin
Modified:
9 years, 7 months ago
Reviewers:
Bernhard Bauer, Nico
CC:
chromium-reviews, pam+watch_chromium.org
Visibility:
Public.

Description

Check in a little toy that graphs history of words in the source. Useful for tracking progress on projects like wstring removal. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=55107

Patch Set 1 #

Patch Set 2 : hyphen #

Total comments: 1

Patch Set 3 : move dot #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -2 lines) Patch
M tools/git/README View 1 1 chunk +10 lines, -2 lines 0 comments Download
A tools/git/graph.sh View 1 2 1 chunk +42 lines, -0 lines 3 comments Download

Messages

Total messages: 6 (0 generated)
Evan Martin
Not ready for review yet, need to merge in the change from http://gist.github.com/509508
10 years, 4 months ago (2010-08-05 15:16:37 UTC) #1
Nico
The following is just a suggestion: http://codereview.chromium.org/3017058/diff/2001/3002 File tools/git/graph.sh (right): http://codereview.chromium.org/3017058/diff/2001/3002#newcode37 tools/git/graph.sh:37: EOF Would it ...
10 years, 4 months ago (2010-08-05 16:17:26 UTC) #2
Evan Martin
I tried Bernhard's idea but noticed it's a lot slower: 1m18s to do the checkout-then ...
10 years, 4 months ago (2010-08-05 18:01:05 UTC) #3
Nico
LG, some incoherent rambling below. http://codereview.chromium.org/3017058/diff/7001/8002 File tools/git/graph.sh (right): http://codereview.chromium.org/3017058/diff/7001/8002#newcode25 tools/git/graph.sh:25: for ago in $(seq ...
10 years, 4 months ago (2010-08-05 18:11:53 UTC) #4
Bernhard Bauer
Hm, I thought that the reason that git-grep is faster than regular grep is exactly ...
10 years, 4 months ago (2010-08-05 22:55:05 UTC) #5
Evan Martin
10 years, 4 months ago (2010-08-05 22:59:19 UTC) #6
I think it's mostly because it only looks at the filenames you specify.

Even git grep knows to shell out to grep because you can't beat grep:
http://ridiculousfish.com/blog/archives/2006/05/30/old-age-and-treachery/

On Thu, Aug 5, 2010 at 3:54 PM, Bernhard Bauer <bauerb@chromium.org> wrote:
> Hm, I thought that the reason that git-grep is faster than regular
> grep is exactly that it does not need to look at the files in the
> working tree, but can just read from its store?
>
> On Thursday, August 5, 2010,  <evan@chromium.org> wrote:
>> I tried Bernhard's idea but noticed it's a lot slower:
>> 1m18s to do the checkout-then grep, while 2m to do the grep-with-tree.
>> I think this is because each checkout is near the others in time so there are
>> fewer on-disk files to change, while the grep-with-tree needs to re-fetch the
>> files with each grep.
>>
>> It would be cute to generate an HTML graph, but that means I don't get an
image
>> I can paste into buzz etc. and I don't have time to fiddle with it right now.
>> I'd accept a patch.  :)
>>
>> I believe this is ready for review now.
>>
>> http://codereview.chromium.org/3017058/show
>>
>

Powered by Google App Engine
This is Rietveld 408576698