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 76F617268 for ; Tue, 18 Oct 2011 06:36:27 +0000 (UTC) Received: (qmail 44614 invoked by uid 500); 18 Oct 2011 06:36:25 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 44569 invoked by uid 500); 18 Oct 2011 06:36:21 -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 44562 invoked by uid 99); 18 Oct 2011 06:36:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Oct 2011 06:36:16 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of elecharny@gmail.com designates 74.125.82.178 as permitted sender) Received: from [74.125.82.178] (HELO mail-wy0-f178.google.com) (74.125.82.178) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Oct 2011 06:36:09 +0000 Received: by wyf28 with SMTP id 28so251461wyf.37 for ; Mon, 17 Oct 2011 23:35:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=tChYD974UbD1eqhDFSEL9nv10+sYMS3B3zId83KM4dU=; b=IVXQK8QBcoQH/jRp4TF85O2DB2CSalSV/69xrWYB+CK3W6KVLjyogGtng0aQarpppO GKE7axvUxtXisJzrbH91aUA83neNny7qIUeFFhHUNMKKCPLrTHJyu2kauHFLPWiBnvo5 7wyLKlmL5bu/tglNDcMqJu83e0a5v3q1h1zv4= Received: by 10.227.8.213 with SMTP id i21mr369348wbi.80.1318919748181; Mon, 17 Oct 2011 23:35:48 -0700 (PDT) Received: from emmanuel-lecharnys-MacBook-Pro.local (ran75-1-78-192-106-184.fbxo.proxad.net. [78.192.106.184]) by mx.google.com with ESMTPS id k26sm1567655wbo.16.2011.10.17.23.35.47 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 17 Oct 2011 23:35:47 -0700 (PDT) Message-ID: <4E9D1E42.1000109@gmail.com> Date: Tue, 18 Oct 2011 08:35:46 +0200 From: Emmanuel Lecharny Reply-To: elecharny@apache.org User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: Apache Directory Developers List Subject: Lookup operation performance with the modified JDBM Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi guys, I have done some profiling to see why we get a really slower processing of operations like lookup or search with the new JDBM code base : we always copy the value we get back from the JDBM partition, which means we deserialize entries or dns. Deserializing is an awfully costly operation. The result is that we get a 7 times slower lookup (5000/s against 35000/s before) doing a copy for each entry we return. I have no idea if we can avoid doing such a copy, I just wanted to know where we were spending time for such an operation. -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com