
5 May
2010
5 May
'10
10:36 p.m.
Dear Scott Wood,
In message 4BE1CACE.6040005@freescale.com you wrote:
Surely the extra quarter second is not too significant compared to the time it takes to formulate the query and examine the results.
The requests are often generated by some script, and there may be tens of them - enough that the 'git log' versions takes several seconds.
it's more efficient:
-> strace -f grep foobar CHANGELOG 2>&1>/dev/null | wc -l 143 -> strace -f git log --grep=foobar 2>&1>/dev/null | wc -l 2494
It also requires that a cache be maintained just for this purpose.
I can't parse that.
You could even have a cron job keep it up to date. :-)
Agreed. There are many, many possibilities.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Perl itself is usually pretty good about telling you what you
shouldn't do. :-) - Larry Wall in 11091@jpl-devvax.JPL.NASA.GOV