lkml.org 
[lkml]   [2010]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: how do YOU hack the linux kernel ?
Date
Ramagudi Naziir <naziirr@gmail.com> writes:

> do you use vim ?

Sure, for small changes. And emacs.

> If so, how do you open files you want to read/edit ?
> Assuming you don't remember their exact name/location, you'd need to
> use something like 'find . -iname '*pattern*'. which is slow.

Not very slow, if the tree is already in cache. You need only ca. 1 GB
of RAM for this. I never use ".", I use "*" instead as it ignores .git
directory:

$ time find * -iname \*pattern\*
real 0m0.051s

$ time grep "The pattern" * -r
(results)
real 0m0.330s

(grep -i is much slower).

Other tools? Git, gitk and WWW browser :-)
--
Krzysztof Halasa


\
 
 \ /
  Last update: 2010-01-20 19:07    [W:0.255 / U:0.416 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site