Re: OK, how do I count files in a directory QUICK!!!

2010-07-03 Thread Mike
Use readdir() to read the dir file so it doesn't have to stat() everything. Depending on the tool you use depends on what it does under the hood. Both ls and find stat() files I believe. Example: # time ls -l /dir/with/40k/files | wc -l 6709 real0m2.606s user0m0.096s sys 0m0.136s

Re: OT: (or is it?) Interesting take on PKI and security

2010-07-03 Thread Technomage
On 7/1/10 6:36 PM, Mike Schwartz wrote: Interesting take on PKI and security http://www.schneier.com/paper-pki-ft.txt a favorite take-away quote, from it: "[...] security is very difficult, both to understand and to implement." The biggest problem with security is that most (nearly 99%) do n