Re: Speeding up pkg_version and perhaps other port utilities

2007-05-21 Thread Stephen Montgomery-Smith
Stephen Montgomery-Smith wrote: 2. Profile bsd make and see if there are any bottlenecks. I bet make was never designed for speed in these kinds of situations. But this would be a long term project, albeit definitely worth doing. It looks to me like the variables are stored as a linear lis

Re: Speeding up pkg_version and perhaps other port utilities

2007-05-21 Thread Alexander Leidinger
Quoting Doug Barton <[EMAIL PROTECTED]> (from Sun, 20 May 2007 15:20:48 -0700): Alexander Leidinger wrote: Quoting Stephen Montgomery-Smith <[EMAIL PROTECTED]> (Sat, 19 May 2007 23:48:52 -0500): On my system, the program pkg_version can double its speed simply by replacing "make -V PKG

Re: Speeding up pkg_version and perhaps other port utilities

2007-05-20 Thread Garrett Cooper
Stephen Montgomery-Smith wrote: Stephen Montgomery-Smith wrote: On Sun, 20 May 2007, Doug Barton wrote: Alexander Leidinger wrote: Quoting Stephen Montgomery-Smith <[EMAIL PROTECTED]> (Sat, 19 May 2007 23:48:52 -0500): On my system, the program pkg_version can double its speed simply by

Re: Speeding up pkg_version and perhaps other port utilities

2007-05-20 Thread Stephen Montgomery-Smith
Stephen Montgomery-Smith wrote: On Sun, 20 May 2007, Doug Barton wrote: Alexander Leidinger wrote: Quoting Stephen Montgomery-Smith <[EMAIL PROTECTED]> (Sat, 19 May 2007 23:48:52 -0500): On my system, the program pkg_version can double its speed simply by replacing "make -V PKGNAME" by "m

Re: Speeding up pkg_version and perhaps other port utilities

2007-05-20 Thread Stephen Montgomery-Smith
On Sun, 20 May 2007, Doug Barton wrote: Alexander Leidinger wrote: Quoting Stephen Montgomery-Smith <[EMAIL PROTECTED]> (Sat, 19 May 2007 23:48:52 -0500): On my system, the program pkg_version can double its speed simply by replacing "make -V PKGNAME" by "make BEFOREPORTMK=yes -V PKGNAME"

Re: Speeding up pkg_version and perhaps other port utilities

2007-05-20 Thread Garrett Cooper
Doug Barton wrote: Alexander Leidinger wrote: Quoting Stephen Montgomery-Smith <[EMAIL PROTECTED]> (Sat, 19 May 2007 23:48:52 -0500): On my system, the program pkg_version can double its speed simply by replacing "make -V PKGNAME" by "make BEFOREPORTMK=yes -V PKGNAME" This is very cool! I'v

Re: Speeding up pkg_version and perhaps other port utilities

2007-05-20 Thread Doug Barton
Alexander Leidinger wrote: Quoting Stephen Montgomery-Smith <[EMAIL PROTECTED]> (Sat, 19 May 2007 23:48:52 -0500): On my system, the program pkg_version can double its speed simply by replacing "make -V PKGNAME" by "make BEFOREPORTMK=yes -V PKGNAME" This is very cool! I've already added it t

Re: Speeding up pkg_version and perhaps other port utilities

2007-05-19 Thread Alexander Leidinger
Quoting Stephen Montgomery-Smith <[EMAIL PROTECTED]> (Sat, 19 May 2007 23:48:52 -0500): > On my system, the program pkg_version can double its speed simply by > replacing "make -V PKGNAME" by "make BEFOREPORTMK=yes -V PKGNAME" in > src/usr.sbin/pkg_install/version. Basically what it does is to

Speeding up pkg_version and perhaps other port utilities

2007-05-19 Thread Stephen Montgomery-Smith
On my system, the program pkg_version can double its speed simply by replacing "make -V PKGNAME" by "make BEFOREPORTMK=yes -V PKGNAME" in src/usr.sbin/pkg_install/version. Basically what it does is to tell "make" to process only about half of bsd.port.mk. It seems to me that with some clever