Adding new dependencies for in-core - Mailing list pgsql-jdbc

From Vladimir Sitnikov
Subject Adding new dependencies for in-core
Date
Msg-id CAB=Je-GR+Qs85tUsGAD+5UtyTgYPdAvb8NOmThni5heUhOzT+Q@mail.gmail.com
Whole thread Raw
Responses Re: Adding new dependencies for in-core  (Dave Cramer <pg@fastcrypt.com>)
Re: Adding new dependencies for in-core  ("Markus KARG" <markus@headcrashing.eu>)
List pgsql-jdbc
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 https://github.com/ben-manes/concurrentlinkedhashmap would be
useful to implement the cache.

We don't need all the stuff CLHM has, but I see no easy&scalable way
of doing concurrent map with eviction by mere java.util.concurrent
stuff.

Well, I can do lock splitting (i.e. use multiple small LRU caches
instead of 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


pgsql-jdbc by date:

Previous
From: Álvaro Hernández Tortosa
Date:
Subject: Re: SQLJSON
Next
From: Dave Cramer
Date:
Subject: Re: Adding new dependencies for in-core