Path: csiph.com!xmission!news.alt.net!not-for-mail From: owl Newsgroups: comp.os.linux.advocacy Subject: Re: done Date: Sat, 30 Apr 2016 03:50:02 +0000 (UTC) Organization: O.W.L. Lines: 43 Message-ID: References: NNTP-Posting-Host: boom.rooftop.invalid User-Agent: tin/2.2.1-20140504 ("Tober an Righ") (UNIX) (Linux/3.16.0-4-amd64 (x86_64)) Xref: csiph.com comp.os.linux.advocacy:352806 DFS wrote: > On 4/29/2016 6:13 PM, owl wrote: > >> Elapsed time 3 hours +/- 2 min. >> Now grep'ing. :) > > The beady-eyes narrow down while the stalking prey is hunted. > > > >> anon@lowtide:/media/anon/5331134e-f853-4f49-876b-863d26af6261/ips$ ls -ltrah out* >> -rw-r--r-- 1 anon anon 25G Apr 29 18:01 out32 >> -rw-r--r-- 1 anon anon 24G Apr 29 18:02 out64 >> -rw-r--r-- 1 anon anon 24G Apr 29 18:03 out96 >> -rw-r--r-- 1 anon anon 25G Apr 29 18:03 out128 >> -rw-r--r-- 1 anon anon 25G Apr 29 18:04 out160 >> -rw-r--r-- 1 anon anon 25G Apr 29 18:05 out192 >> -rw-r--r-- 1 anon anon 25G Apr 29 18:05 out224 >> -rw-r--r-- 1 anon anon 24G Apr 29 18:06 out255 >> anon@lowtide:/media/anon/5331134e-f853-4f49-876b-863d26af6261/ips$ >> > > > That's on the order of 398,000 per second. > > Did I do the math right? > > 256*256*256*256 = 4,294,967,296 hashes to generate > 60 secs/minute * 60 min/hour * 3 hrs = 10,800 seconds > > 4,294,967,296 / 10,800 = 397,682 > > Sounds about right. I didn't get a match on the one string I tested. Takes anywhere from 11 to 13 minutes to grep through *one* of the 8 files. I scrounged around for speed enhancement techniques, and that's about the best I could get it to do. $ LANG=C grep -m 1 -F Anyway, I may try hashing with a newline.