Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z9z0T-0004fE-0q for pgsql-jdbc@arkaria.postgresql.org; Tue, 30 Jun 2015 17:07:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Z9z0S-0003cD-Bv for pgsql-jdbc@arkaria.postgresql.org; Tue, 30 Jun 2015 17:07:36 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Z9yzk-0002sY-VT for pgsql-jdbc@postgresql.org; Tue, 30 Jun 2015 17:06:53 +0000 Received: from smtprelay05.ispgateway.de ([80.67.31.94]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Z9yzi-0004an-6k for pgsql-jdbc@postgresql.org; Tue, 30 Jun 2015 17:06:51 +0000 Received: from [88.66.6.212] (helo=Zauselmaus) by smtprelay05.ispgateway.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.84) (envelope-from ) id 1Z9yzg-0000vB-H5 for pgsql-jdbc@postgresql.org; Tue, 30 Jun 2015 19:06:48 +0200 From: "Markus KARG" To: "'List'" References: In-Reply-To: Subject: Re: Adding new dependencies for in-core Date: Tue, 30 Jun 2015 19:06:48 +0200 Organization: Markus KARG, Staatl. gepr. Inf. Message-ID: <011501d0b357$26f1eca0$74d5c5e0$@eu> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AdCzL19z6ijCvZo/QxOB4DeUGz5x3QAJ5FmA Content-Language: de X-AVK-Virus-Check: AVA 25.2250;789163EA X-AVK-Spam-Check: 1; str=0001.0A0C0205.5592CCA7.01DB,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0; F1206 X-Df-Sender: bWFya3VzQGhlYWRjcmFzaGluZy5ldQ== X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org Vladimir, sorry for being so ingorant not to give it a deeper thought, but what is in= CLHM what is not also in java.util.concurrent.ConcurrentHashMap? -Markus -----Original Message----- From: pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-owner@postgresql.o= rg] On Behalf Of Vladimir Sitnikov Sent: Dienstag, 30. Juni 2015 14:21 To: List Subject: [JDBC] Adding new dependencies for in-core Hi, I've had a quick look into https://github.com/pgjdbc/pgjdbc/issues/345 (Share parsed query texts across different connections) and it looks like h= ttps://github.com/ben-manes/concurrentlinkedhashmap would be useful to impl= ement the cache. We don't need all the stuff CLHM has, but I see no easy&scalable way of doi= ng concurrent map with eviction by mere java.util.concurrent stuff. Well, I can do lock splitting (i.e. use multiple small LRU caches instead o= f a single big cache), however that looks like reinventing the wheel. Can you suggest what is the best way of adding CLHM dependency? Should it be added in plain? Should it be shaded? (i.e. renamed to org.postgresql.clhm...) I'm more inclined to the "add regular dependency" approach. I expect similar question might appear if we consider using netty for IO. -- Regards, Vladimir Sitnikov --=20 Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc --=20 Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc