speeding up KFind

Cristian Tibirna tibirna at kde.org
Sun May 25 23:28:43 BST 2003


On Sunday, 25 May 2003 17:49, Tim Jansen wrote:
> On Sunday 25 May 2003 23:12, Cristian Tibirna wrote:
> > > KFind can be very slow if ones searches for file content because it
> > > searches any file, even large binary files that usually don't even
> > > contain text.
> >
> > Why not run strings(1) on binary files?
>
> Wouldnt this be even slower?
>
> bye...


Yes, you're right, it would be:

ctibirna at leto:~> time for i in `seq 1000`; do strings \ 
/usr/local/mozilla/mozilla-bin | grep test; done

real    0m16.517s
user    0m13.270s
sys     0m3.240s
ctibirna at leto:~> time for i in `seq 1000`; do grep test \ 
/usr/local/mozilla/mozilla-bin ; done

real    0m2.589s
user    0m1.380s
sys     0m1.210s


-- 
Cristian Tibirna
KDE developer .. tibirna at kde.org .. http://www.kde.org




More information about the kde-core-devel mailing list