Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ANN] Shovel - Third-Party "Software Update"



On 24 Mar 2004, at 20:38, Kevin Ballard wrote:

> 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.

[snip]

> You *really* gotta optimize it as well. If not, then use the find
> command as an NSTask.

Actually I think Uli should be using the Carbon routines
(FSCatalogSearch() I think, although I'm sure Uli knows more about
Carbon than I do as it happens ;->) to scan for all MacPAD.url files on
the disk, because that should really fly on HFS+ disks due to the way
HFS+ works. It's much faster than the "find" command will *ever* be,
especially on disks with lots of directories. Once you've found the
MacPAD.url files, you can then filter based on the directory they're
in, check that they're inside .app wrappers etc.

The program is a nice idea, though. It's a lot easier having one
central software update application, rather than every single app.
checking every time it gets loaded or requiring users to check
manually. Having said that, it'd be nice if Apple could integrate
MacPAD support directly into Software Update...

BTW, it doesn't seem to like being told to quit whilst it's
searching... it seems to have hung trying to obtain an NSLock in
[UKShovelAppDelegate applicationWillTerminate:] whilst the second
thread (the one doing the scanning) is trying to get an NSConditionLock
in [NSObject performSelectorOnMainThread:withObject:waitUntilDone:]
which was triggered from [UKShovelAppDelegate
findApplicationsInDirectory:].

Kind regards,

Alastair.

--
http://www.alastairs-place.net

[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.


References: 
 >[ANN] Shovel - Third-Party "Software Update" (From: "M. Uli Kusterer" <email@hidden>)
 >Re: [ANN] Shovel - Third-Party "Software Update" (From: Kevin Ballard <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.