aeppert / codesearch

Automatically exported from code.google.com/p/codesearch
0 stars 0 forks source link

csearch: print statistics of -f fregexp hits if -verbose [PATCH] #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
csearch already prints the trigrams and number of files matched from the index 
if -verbose mode is on.

This patch preprocesses the list of fileids so we can print how many were 
matched by the filename regex.

It does double the number of calls to ix.Name(fileid), but that call looks 
cheap and any slowdown would be dwarfed by the disk access during the grep 
stage anyway.

Original issue reported on code.google.com by dgryski on 17 Feb 2012 at 1:50

Attachments:

GoogleCodeExporter commented 9 years ago
This issue was closed by revision b346b86571f7.

Original comment by dgryski on 2 May 2012 at 8:12