discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Associating bundle directories with app


From: David Chisnall
Subject: Re: Associating bundle directories with app
Date: Tue, 25 Jan 2011 20:56:52 +0000

On 25 Jan 2011, at 20:41, Ivan Vučica wrote:

> This sounds great! However, perhaps checking standard directories for 
> applications and reading all Info.plists is not wise for performance reasons; 
> perhaps leaving that task to make_services  would be a good idea, while just 
> making sure that cached apps exist, and that currently running app is 
> registered?


If it's just updating a cache, then it shouldn't be too bad in terms of 
performance.  It wouldn't need to read Info.plists from any .app that was 
already in the cache (maybe it could store the modification date in the cache 
and just stat the file to find out if it had been modified more recently, but 
you could probably just assume it hasn't, and do a proper update the next time 
the .app is launched, when the .plist is read anyway).  

Since you typically only have 3 Applications directories, this would just 
involve the equivalent of three ls *.app commands in the common case, and a 
tiny bit more in cases where you've added one or two new apps recently.  

David

-- Sent from my STANTEC-ZEBRA




reply via email to

[Prev in Thread] Current Thread [Next in Thread]