From owner-freebsd-ports@FreeBSD.ORG Fri Sep 29 20:14:32 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B07716A407 for ; Fri, 29 Sep 2006 20:14:32 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail15.syd.optusnet.com.au (mail15.syd.optusnet.com.au [211.29.132.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3CB5D43D62 for ; Fri, 29 Sep 2006 20:14:29 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c58-107-94-118.belrs4.nsw.optusnet.com.au [58.107.94.118]) by mail15.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id k8TKEQuq026513 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sat, 30 Sep 2006 06:14:27 +1000 Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.8/8.13.8) with ESMTP id k8TKEQgI016793; Sat, 30 Sep 2006 06:14:26 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.8/8.13.8/Submit) id k8TKEQh6016792; Sat, 30 Sep 2006 06:14:26 +1000 (EST) (envelope-from peter) Date: Sat, 30 Sep 2006 06:14:26 +1000 From: Peter Jeremy To: Michel Talon Message-ID: <20060929201426.GG983@turion.vk2pj.dyndns.org> References: <20060929172122.GA80952@lpthe.jussieu.fr> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OFj+1YLvsEfSXdCH" Content-Disposition: inline In-Reply-To: <20060929172122.GA80952@lpthe.jussieu.fr> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.12-2006-07-14 Cc: ports@freebsd.org Subject: Re: Yet another INDEX builder. X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Sep 2006 20:14:32 -0000 --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--