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 97D90C288 for ; Mon, 9 Sep 2013 06:24:04 +0000 (UTC) Received: (qmail 55394 invoked by uid 500); 9 Sep 2013 06:24:02 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 55141 invoked by uid 500); 9 Sep 2013 06:23:58 -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 55045 invoked by uid 99); 9 Sep 2013 06:23:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Sep 2013 06:23:56 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mail@stefan-seelmann.de designates 109.239.48.183 as permitted sender) Received: from [109.239.48.183] (HELO amber.s12n.de) (109.239.48.183) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Sep 2013 06:23:50 +0000 Received: from [192.168.2.117] (dslb-084-057-005-192.pools.arcor-ip.net [84.57.5.192]) by amber.s12n.de (Postfix) with ESMTPSA id 0DCDD5FF for ; Mon, 9 Sep 2013 08:23:19 +0200 (CEST) Message-ID: <522D6938.9060706@stefan-seelmann.de> Date: Mon, 09 Sep 2013 08:22:48 +0200 From: Stefan Seelmann User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130806 Thunderbird/17.0.8 MIME-Version: 1.0 To: dev@directory.apache.org Subject: Re: Cache and partitions... References: <522C3078.8030505@gmail.com> <522D5FFD.7040902@gmail.com> <522D621B.6090903@gmail.com> In-Reply-To: <522D621B.6090903@gmail.com> X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamav-milter 0.97.8 at amber X-Virus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org On 09/09/2013 07:52 AM, Emmanuel Lécharny wrote: > Le 9/9/13 7:43 AM, Emmanuel Lécharny a écrit : >> Le 9/9/13 4:46 AM, Kiran Ayyagari a écrit : >> >> I suggest we focus on decoupling the cacheService we have from it's >> EhCache implementation atm, so that the API is not to be odified after >> the next release, and that's it. I also suggest to make this >> CacheService available in the Partitions, even if it's not used. >> >> again, IMO plugging in this kind of mechanism may not be of great help, >>> just more work >>> on a feature that may never be used, I believe Ehcache is the best >>> available cache with >>> the compatible license and unless we try to write our own we don't need >>> this new feature I agree that we should have a interface to be able to change the cache implementation. I think ehcache is the default choice today, but it's not just a simple in-memory cache but a huge product with tons of features. > > FTR : > > http://commons.apache.org/proper/commons-jcs/JCSvsEHCache.html > > *"JCS proved to be nearly twice as fast as EHCache * in multiple trials > for both puts and gets" > > And it's an Apache project ;-) > Just a small note regarding performance of ehcache: it keeps lot of statistics (hit rate, miss rate, etc.), and before version 2.1 they were enabled by default which costs significant performance. Kind Regards, Stefan