Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Sep 2006 06:14:26 +1000
From:      Peter Jeremy <peterjeremy@optushome.com.au>
To:        Michel Talon <talon@lpthe.jussieu.fr>
Cc:        ports@freebsd.org
Subject:   Re: Yet another INDEX builder.
Message-ID:  <20060929201426.GG983@turion.vk2pj.dyndns.org>
In-Reply-To: <20060929172122.GA80952@lpthe.jussieu.fr>
References:  <20060929172122.GA80952@lpthe.jussieu.fr>

next in thread | previous in thread | raw e-mail | index | archive | help

--OFj+1YLvsEfSXdCH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, 2006-Sep-29 19:21:22 +0200, Michel Talon wrote:
>timings (*) one gets. On my machine, a P4 3Ghz, oldish, it takes 23 minute=
s to
>complete building the INDEX, but the python script doesn't run more than 1
>minute. Everything else is IO, i think. So one cannot expect any performan=
ce
>improvement by writing such a program in C.

IMHO, the advantage of using C is that it would remove the need for
yet another interpreter to be installed to manage my ports.  Or, to
put is another way, by writing it in python, you have made your script
less attractive to me than it would be if it was in C/sh/awk.

Several years ago, the Project went to a lot of effort to re-writes
bits of the base system in C/sh/awk to allow perl to be removed.
Ports-based maintenance tools are (of course) free to use any language
but the proliferation of different tools using different languages
means that I wind up with a large number of languages and interpreters
installed just to easily manage my system:
- CVSup needs Modula-2
- portupgrade needs Ruby
- your new index builder needs Python
- various other ports management tools use perl

Please don't take the above as a personal attack - I'm merely pointing
out that there are other reasons apart from performance for using C.

--=20
Peter Jeremy

--OFj+1YLvsEfSXdCH
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQFFHX6i/opHv/APuIcRAmXDAKCTIFdFK06GMzVb33qM9X48E91cbgCdGZ9e
GSTh4Zr0IJT75KIR4tnae1Q=
=m+bc
-----END PGP SIGNATURE-----

--OFj+1YLvsEfSXdCH--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060929201426.GG983>