tech-pkg archive

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

Re: pkgsrc performance



On Tue, 24 Feb 2009, Joerg Sonnenberger wrote:

On Tue, Feb 24, 2009 at 06:49:46PM +0100, Hubert Feyrer wrote:
Not knowing what you've straced there, reading the same file 12000 times
sounds insane.

bsd.(fast.)prefs.mk is included all over the place. The fast version
exists simply to not have to check for the include guards all over the
place, but still minimize parse time. It is 8 lines long, including 5
lines of unparsed noise. So it adds only a few system calls, but
otherwise doesn't contribute to parse time.

        Is there any sense in extending make for this? Have it
        track every included path and have a '.includeonce' or similar
        directive which will not include a file if its already been
        included. We could then cleanup all the
        "if ! FOO, set FOO, do stuff, endif" logic

        Is there prior art for this?

--
                David/absolute       -- www.NetBSD.org: No hype required --


Home | Main Index | Thread Index | Old Index