Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6AE38DACA for ; Thu, 13 Dec 2012 22:57:55 +0000 (UTC) Received: (qmail 81882 invoked by uid 500); 13 Dec 2012 22:57:55 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 81838 invoked by uid 500); 13 Dec 2012 22:57:55 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 81831 invoked by uid 99); 13 Dec 2012 22:57:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Dec 2012 22:57:55 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of elecharny@gmail.com designates 209.85.212.170 as permitted sender) Received: from [209.85.212.170] (HELO mail-wi0-f170.google.com) (209.85.212.170) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Dec 2012 22:57:48 +0000 Received: by mail-wi0-f170.google.com with SMTP id hq7so129015wib.1 for ; Thu, 13 Dec 2012 14:57:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :x-enigmail-version:content-type:content-transfer-encoding; bh=/nxdrjC0ErMC1t3zZrk2UeejmdmqDRScAFIDNwdVoJc=; b=KlqPQGBPcXk9tbvXRzF4u+W7jhwA+xrF2bZsc0R4OSQk+OQljQmT9ro+v1aNfruCNv 9C0rD+boh0lIT/c5ZHLj5MMuU90uCBl094jx4WDOjJYRFZS+cU5TvxXWzcE/gKaKZc9U NZJMCO8d3piY+LmwESCcyj2Tp6YrFie3M4VaoiFVS6tXGwH5lCPSnEaWPMISegVe2/A+ JRDxo8E0fjnx/fEiTAo1v/B92IJcyoKSnFrQGJ0CJ7QpddgaKI7fLvnAlKVgASj9sF4v MQpSfGC25jNcADkzmvR5GqKQ7JagnEvf2p6KguZj2xrfU4jTWbcBaxFt+HtuKOE1jgTE kjzA== Received: by 10.194.238.5 with SMTP id vg5mr620884wjc.40.1355439447192; Thu, 13 Dec 2012 14:57:27 -0800 (PST) Received: from host-001.darty (143.145-227-89.dsl.completel.net. [89.227.145.143]) by mx.google.com with ESMTPS id w5sm9915867wif.11.2012.12.13.14.57.26 (version=SSLv3 cipher=OTHER); Thu, 13 Dec 2012 14:57:26 -0800 (PST) Message-ID: <50CA5D56.1070803@gmail.com> Date: Thu, 13 Dec 2012 23:57:26 +0100 From: =?UTF-8?B?RW1tYW51ZWwgTMOpY2hhcm55?= Reply-To: elecharny@apache.org User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Apache Directory Developers List Subject: Various little changes and cleanup in the server X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hi guys, just to inform you that I'm done with the cleanup of the lookup operation. The last commit [1] exposes the change smade. othing really serious, except a change in teh Store API : the previously named lookup( Sring[, Dn]) method is now named fetch(), to avoid any confusion with the exposed lookup method. This method is only used to fetch an entry when we have its UUID. This make some sense when the cursor store this entry in a varibale whch name is 'prefetched'. Everything else is about improvements and cleanups. The lookup performance is 5% faster than the number I posted this morning. [1] http://svn.apache.org/viewvc?rev=1421601&view=rev Log: o Renamed the internal Store.lookup(id) to fetch(id), to avoid any confusion with a standard lookup o Replaced the filterAttributeType() by a call to ServerEntryUtils.filterContent() in the TopFilter (SchemaManager) o Removed the lookup method from the ExceptionInterceptor : the subschemaSubentry processing is now done in the OperationalAttributeInterceptor o Moved the code that was grabbing the subentrySchema to the OperationalAttributeInterceptor lookup method o Added a dependency on core-shared in the apacheds-interceptors-operational module to b able to access the SchemaService class o Removed a lot of useless code in the SchemaService class : ,o need to filter the attributes there. o Removed the useless DefaultPartitionNexus.initializeSystemPartition() method o Removed the useless public Entry lookup( Dn dn ) throws LdapException method from CoreSession and the implementations o Ignored the testSearchFetchNonExistingAttributeOption test in core-integ SearchIT, we don't support options atm. o The BaseEntryFilteringCursor.next() method not anymore filter the attributes : it's already done in the SchemaInterceptor o Speedup the ServerEntryUtils.filterContents() by adding acontinue to avoid useless computation to take place -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com