From owner-freebsd-hackers@FreeBSD.ORG Mon May 14 00:16:12 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CBF0C16A405 for ; Mon, 14 May 2007 00:16:12 +0000 (UTC) (envelope-from Thomas.Sparrevohn@btinternet.com) Received: from smtp805.mail.ird.yahoo.com (smtp805.mail.ird.yahoo.com [217.146.188.65]) by mx1.freebsd.org (Postfix) with SMTP id 4270C13C459 for ; Mon, 14 May 2007 00:16:12 +0000 (UTC) (envelope-from Thomas.Sparrevohn@btinternet.com) Received: (qmail 69964 invoked from network); 14 May 2007 00:16:11 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=btinternet.com; h=Received:X-YMail-OSG:Reply-To:From:To:Cc:References:In-Reply-To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:Thread-Index:Content-Language; b=fY2lcYi64JkQbsT8QwBOAmKke/CIhz9iSzB49FcXmNcTI6E4zLHAxsrJWzP0jRiU3DBsBW6Yc0RvPK79Zixe0KxhDcofiHHeHV6yd6BJGeTZgdaWDoh4D8rEFg3nQAnW6OjsJ8yD0SRYwU5OvoGa1LzyBEnyaaHu6RIs0ESWr2g= ; Received: from unknown (HELO w2fzz0vc03) (thomas.sparrevohn@btinternet.com@86.134.25.217 with login) by smtp805.mail.ird.yahoo.com with SMTP; 14 May 2007 00:16:10 -0000 X-YMail-OSG: NeUM9.QVM1lJYDtAAVbGGUXozjOyn4x3tWOkpGicM65ClRwp5.zjh4l83eKNVruxxGsHHMpjOQ-- From: "Thomas Sparrevohn" To: "'Benjamin Lutz'" , References: <20070512004209.GA12218@lpthe.jussieu.fr> <20070513202737.GA63102@xor.obsecurity.org> <004301c795a1$c7e89410$57b9bc30$@Sparrevohn@btinternet.com> <200705132355.05941.mail@maxlor.com> In-Reply-To: <200705132355.05941.mail@maxlor.com> Date: Mon, 14 May 2007 01:16:09 +0100 Message-ID: <010701c795bd$131e5120$395af360$@Sparrevohn@btinternet.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AceVqYeUlXFBX+nrRm+koAQjEQDFXQAEW/uA Content-Language: en-gb Cc: 'Michel Talon' , 'Kris Kennaway' Subject: RE: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Thomas.Sparrevohn@btinternet.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 00:16:12 -0000 > > The second point is most important here. This whole thread exists > because people consider the existing ports system to be too slow. How > is using XML going to help with that at all? > But which part? The /var half of the equation - well that depends on the operation - Lookup? E.g. testing for the existence of another port? Update? E.g. Updating a dependency (Implicit Lookup) Delete? E.g. Removing (Implicit Update and Lookup) Install and so on Lookup and update can be optimized but for what install base? E.g. Do we know how many ports the typical system has? A simple solution - to the lookup and update - could be to have a master dependencies matrix N x N where each dimension is a port and a dependency - if the typical install base is say 500 ports that only has to be 500x500 bits - and so on. The /usr/ports/INDEX side is another issue totally - and the primary problem is maintaining the file without having to visit all directories - well - a simple hack is only to update changed records based upon mtime - it's still nasty - because all dependencies has to be changed as well.