Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 21 Feb 2001 17:27:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 21 Feb 2001 17:27:08 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.31.123]:22796 "EHLO atrey.karlin.mff.cuni.cz") by vger.kernel.org with ESMTP id ; Wed, 21 Feb 2001 17:26:50 -0500 Date: Wed, 21 Feb 2001 23:26:35 +0100 From: Martin Mares To: Davide Libenzi Cc: Daniel Phillips , ext2-devel@lists.sourceforge.net, hch@ns.caldera.de, Andreas Dilger , tytso@valinux.com, Linux-kernel@vger.kernel.org Subject: Re: [rfc] Near-constant time directory index for Ext2 Message-ID: <20010221232635.A25272@atrey.karlin.mff.cuni.cz> In-Reply-To: <20010221223238.A17903@atrey.karlin.mff.cuni.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.12i In-Reply-To: ; from davidel@xmailserver.org on Wed, Feb 21, 2001 at 01:59:03PM -0800 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hello! > My personal preference goes to skiplist coz it doesn't have fixed ( or growing > ) tables to handle. You've simply a stub of data togheter with FS data in each > direntry. Another problem with skip lists is that they require variable sized nodes, so you either need to keep free chunk lists and lose some space in deleted nodes kept in these lists, or you choose to shift remaining nodes which is slow and complicated as you need to keep the inter-node links right. With hashing, you can separate the control part of the structure and the actual data and shift data while leaving most of the control part intact. > And performance ( O(log2(n)) ) are the same for whatever number of entries. I don't understand this complexity estimate -- it cannot be the same for whatever number of entries as the complexity function depends on the number of entries. Have a nice fortnight -- Martin `MJ' Mares http://atrey.karlin.mff.cuni.cz/~mj/ P.C.M.C.I.A. stands for `People Can't Memorize Computer Industry Acronyms' - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/