Applying git technology to fix the locate command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've been using the Dash HUD in Ubuntu and it's performance is
terrible to the point of being unusable. So I started top and noticed
that it was forking 'locate' and locate was pegging my CPU at 100%
while I tried typing into their incremental search.

Next I looked at the mlocate database. It is 350MB on my desktop and
indexing 10,388,379 files. Not quite sure why I have 10M files on my
desktop - probably because links are making files appear multiple
times.

Typing a non-existent string into locate takes over 10s to respond and
that's with the db cached in RAM.

jonsmirl@terra:/$ time locate lelelekddmd
real	0m10.645s
user	0m10.537s
sys	0m0.064s

Git has to deal with similar path compression and it responds pretty
much instantly. I'm wondering if any of you git gurus could apply some
knowledge from git and use it to fix locate?

-- 
Jon Smirl
jonsmirl@xxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]