jankotek / mapdb

MapDB provides concurrent Maps, Sets and Queues backed by disk storage or off-heap-memory. It is a fast and easy to use embedded Java database engine.
https://mapdb.org
Apache License 2.0
4.87k stars 872 forks source link

Eclipse collections dependency #952

Open piegamesde opened 4 years ago

piegamesde commented 4 years ago

I just went through all dependencies for my application, and eclipse-collections stands out with whopping 10.2 MB, or about the third of my total application size. And if I tracked it down correctly, this dependency got included because I use MapDB. Is there any way to get rid of it? I already depend on guava and apache-commons, I don't need a third collections library, especially if it has four times (!) the size of the others.

pranasblk commented 4 years ago

Agrona may be an option: https://github.com/real-logic/agrona/tree/master/agrona/src/main/java/org/agrona/collections https://github.com/real-logic/agrona/tree/master/agrona/src/test/java/org/agrona/collections It has quite a lot overlap of buffer management, i.e. it contains not only collections, but looks like much slimmer (jar (248 KB) ) option for primitive collections.