Allowing PortGroups to bump port revision

Clemens Lang cal at
Sat Jan 13 15:19:10 UTC 2018


On Sun, Jan 14, 2018 at 12:01:34AM +1100, Joshua Root wrote:
> portindex isn't slow, mportopen is. You have to evaluate the changed
> Portfiles before you can extract their info.

I haven't measures this, but I assume the majority of time in mportopen
is spent by the sub-interpreter loading the port1.0 package (i.e.
evaluating the PortSystem 1.0 line in the Portfile). Since this set of
files should be in the buffer cache after the first Portfile was
evaluated the problem is probably not the disk speed.

This could be made much faster if Tcl had a way to 'clone' an
interpreter that already had port1.0 loaded before running the rest of
the Portfile. If somebody wants to implement that, that would probably
improve portindex speeds significantly.


More information about the macports-dev mailing list