This is the mail archive of the
mailing list for the Cygwin project.
Re: locate and updatedb
- From: Marco Atzeri <marco dot atzeri at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 11 Feb 2016 23:39:03 +0100
- Subject: Re: locate and updatedb
- Authentication-results: sourceware.org; auth=none
- References: <56BC940F dot 6070109 at zoho dot com> <56BCD05C dot 2040409 at gmail dot com> <56BCD414 dot 2010304 at zoho dot com>
On 11/02/2016 19:33, Byron Boulton wrote:
On 2/11/2016 1:18 PM, cyg Simple wrote:
On 2/11/2016 9:00 AM, Byron Boulton wrote:
Does anyone here have success using `updatedb` and `locate` in cygwin? I
use `locate` heavily on my Linux machines, but everytime I've tried to
run `updatedb` on cygwin I've given up and killed the process because it
is taking too long. Is there something wrong with cygwin's
implementation of `updatedb` making it not work at all or making it
slower that on my Linux machines? Or are there others who have success
using it on cygwin?
Processing every file on the drive will be slow just because it's
Windows. Initializing the database with updatedb will require a large
amount of time. There are processes such as AntiVirus intrusion
protection that might make it even slower.
Hmmm, the reason the slowness is particuarly strange to me is that in
place of using `locate` from my cygwin terminal, I have to use a program
called "Everything Search Engine" available at www.voidtools.com. The
first time I install it, it takes maybe a few minutes to index the hard
drive, then every once in a while when I open the program it takes a few
seconds to update the index, but in general the performance for indexing
and searching the index if comparable to `updatedb` and `locate` on a
Linux machine, so it's possible to do on Windows.
the time taken from updatedb is mainly due to
the execution time of "find" on the disks.
It takes ~ 70 minutes for my 500 GB of data,
and likely the AV is impacting the execution.
I suspect voidtools is using MS disk indexing
to speed up the things for it.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple