Re: [ANN] Shovel - Third-Party "Software Update"
Re: [ANN] Shovel - Third-Party "Software Update"
- Subject: Re: [ANN] Shovel - Third-Party "Software Update"
- From: Kevin Ballard <email@hidden>
- Date: Wed, 24 Mar 2004 15:38:41 -0500
Ok, I think this is the killing blow for your search algorithm. I just
started a find on the entire disc for files named MacPAD.url and it
found all MacPAD.url files in a fraction of the time it took for Shovel
to scan my darwinports dports directory (and this includes having find
scan my 120GB external HD in addition to my 60GB internal HD). Also,
find took a fraction of the CPU time.
Seriously, you gotta do something about that search algorithm. First
off, limit it to the directories:
/Applications
/Games
~/Applications
~/Games
This will keep it from scanning my dev directory (which is good because
anything that's in development shouldn't be updated as it's *in
development*), which will keep it from spending 10 minutes on my
darwinports directory. It also keeps it from scanning any other
arbitrary directory. The directories to scan should also be a pref, but
defaulting to those 4 listed above.
You *really* gotta optimize it as well. If not, then use the find
command as an NSTask.
Another thing - is there any point in listing applications which aren't
MacPAD-enabled? I don't really need a list of all my applications, and
if I did, I think System Profiler can give me that. It would be much
better to simply list the MacPAD-enabled applications.
Also (I don't know if you do this already since it's stil scanning my
darwinports directory, but I doubt it), once you're done scanning, save
the whole thing out to disc. Next time it's opened, simply read the
modification date of the root directories and only scan them if they've
been modified since the last scan (and of course, do the same with each
child directory). This will cut down on the scan time a *lot*, as you
only have to scan anything new or changed.
Oh, and the MacPAD checking isn't working. Once Shovel found my app
(Rendezvous Browser, which, unsurprisingly, is up to date), it tried
scanning. It's been 10 minutes (10 minutes spent scanning my
darwinports directory which it's *still* stuck on) and it still says
"checking...", even though when my app checks itself it takes less than
a second.
This looks like a decent start, but it's not yet usable.
BTW, it's *STILL* scanning that darwinports directory, a directory it
has no purpose in scanning and has been scanning for the past 15
minutes.
On Mar 24, 2004, at 2:51 PM, M. Uli Kusterer wrote:
>
Note that this is a preview version of Shovel to solicit feedback from
>
developers and to encourage developers to adopt MacPAD as a standard.
>
Let me know your thoughts!
--
Kevin Ballard
email@hidden
http://www.tildesoft.com
http://kevin.sb.org
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.