Also, if you have a program that opens the same file over and over again, you
might just consider _keeping_ it open and just doing a lseek() to the start of
the file..
Also, programs that open lots of files repeatedly (like top), and can't just
keep them all open (because the processes change, for example) might want to
consider doing a 'chdir("/proc");' first, and then use relative names. That
avoids a filesystem lookup and mount point change. That's not a very big deal,
but if people feel it's slow, there are these kinds of trivial optimizations
you can look into..
Linus