port selfupdate incredibly slow
cowwoc at bbs.darktech.org
Mon Oct 15 19:34:07 PDT 2012
My system isn't overloaded. It's running inside a VM. I'm running a
script inside an automated build system. The faster the build, the
better. Twenty five seconds might seem short to you, but in the world of
automated builds every second matters.
As I mentioned before, there is an easy fix. Why not implement it?
It could be as simple as this:
1. Every time "port selfupdate" is run, store a timestamp of the
current time ("touch lastupdated.marker")
2. The next time "port selfupdate" is run, compare the last-modified
time of the tar file against the timestamp in the marker file. If
the tar file is older, there is no need to update; otherwise, unpack
the tar file.
What do you think?
On 15/10/2012 8:35 PM, Brandon Allbery [via Mac OS Forge] wrote:
> On Mon, Oct 15, 2012 at 8:26 PM, cowwoc <[hidden email]
> </user/SendEmail.jtp?type=node&node=197007&i=0>> wrote:
> It seems a bit silly to unpack a tar file every time I run
> "port selfupdate". If I run it multiple times in a row, shouldn't
> it notice very quickly that nothing has changed? Can't you use
> timestamps to speed this up?
> Not really, as I understand it. But is your system really so
> massively overloaded, or are you really in such a hurry? Shaving 25
> seconds off of selfupdate doesn't seem like it's worth fighting over.
> brandon s allbery kf8nh sine nomine associates
> [hidden email] </user/SendEmail.jtp?type=node&node=197007&i=1> [hidden
> email] </user/SendEmail.jtp?type=node&node=197007&i=2>
> unix/linux, openafs, kerberos, infrastructure http://sinenomine.net
> macports-users mailing list
> [hidden email] </user/SendEmail.jtp?type=node&node=197007&i=3>
> If you reply to this email, your message will be added to the
> discussion below:
> To unsubscribe from port selfupdate incredibly slow, click here
View this message in context: http://mac-os-forge.2317878.n4.nabble.com/port-selfupdate-incredibly-slow-tp117503p197017.html
Sent from the MacPorts - Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the macports-users