Re: Looking for speed increases in "make index" and pkg_version for ports



Garrett Cooper wrote:
Mike Meyer wrote:
In <465AB421.10802@xxxxxx>, Hartmut Brandt <hartmut.brandt@xxxxxx> typed:
1. make and its sub-makes for a) reading the file; b) parsing the file
(note that .if and .for processing is done while parsing); c) processing
targets.

Make and submakes have been gone over already. See <URL:
http://miller.emu.id.au/pmiller/books/rmch/ >.

I'm not sure it can be applied to the ports tree, though. I haven't
looked into it, but recalled this paper when you mentioned measuring
makes and sub-makes.

<mike

Reducing the number of variables will certainly cut down on the amount of overhead in the make/submake context switches by a long shot.

Maybe someone should consider running a 'pre-make' using the .mk files, find the variables of interest for all particular sub-ports, and then carry on the 'root make', i.e. make process in each port directory, with just the variables of interest.

-Garrett

s/long shot/possibly a lot/g

Also, I was thinking in particular of the X.Org 7.2 packages, because the bulk majority of the packages are smaller, and compile in a short amount of time.

-Garrett
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: new package system proposal
    ... If I could install, let's say, FreeBSD 7.1 on that system, use ... No because the packages are built on a rolling ports tree. ... the precompiled packages are somewhat -STABLE every time. ... snapshot and choosing only to upgrade certain ports. ...
    (freebsd-questions)
  • Re: Synchronizing packages on several machines from a repository
    ... You must cvsup your ports tree before you execute the portupgrade. ... Synchronizing packages on several machines from a repository ... I have one main server and several slave machines. ...
    (freebsd-questions)
  • Re: Installation
    ... the community as a whole save to suggest that offering a DVD iso image ... swapping when adding packages. ... for the simple reason that the ports tree is a moving target - ...
    (freebsd-questions)
  • Re: updated ports tree
    ... so I had to install from the Ports tree, but the tree on the 5.2.1 CD only ... package of XFCE4, but presumably due to the dependencies and modules etc, it ... getting packages for each dependency and then misisng something and it ...
    (freebsd-questions)
  • Re: Questions about upgrading between releases
    ... to upgrade from one release to another: ... when ports are constantly upgraded (by security updates ... packages are not upgraded by their mainteners once ... After all packages are built, the ports tree is unfrozen again. ...
    (comp.unix.bsd.freebsd.misc)