Collections.compare:JDK, Eclipse, Guava, Apache
summary
Compares JDK 8, Eclipse Collections, Guava and Apache Commons by implementing a deck-of-cards domain and measuring real code: creating an immutable list, building an immutable list multimap, counting with bags/multisets and dealing hands. Uses JMH for throughput and JOL-like object sizing for memory. Finds JDK grouping runs fastest because it avoids copying into immutable structures, Eclipse and Guava use noticeably less memory for the deck and Eclipse’s primitive-backed bag hits ~408 bytes for counts, all code and benchmarks are published.
AI-written summary · about
chapters (25)
- 0:00Intro
- 0:23About the Speakers
- 4:21Java Collections Framework
- 9:01Collection Frameworks Timeline
- 10:39Use Case - Deck of Cards
- 12:44A Deck of Cards - Only the Types
- 14:11Shared Code - Cartesian Product
- 15:16Eclipse Collections - Cartesian Product
- 19:19Performance Test - ImmutableList
- 20:33Memory Test - ImmutableList
- 21:26JDK Collections - "ImmutableList"
- 22:32Apache Collections - "ImmutableList"
- 22:55Eclipse Collections - ImmutableList
- 24:03Performance Test - groupBy
- 25:56JDK Collections - Group By
- 26:57Apache Collections - Group By
- 29:43Eclipse Collections - Group By
- 31:06Performance Test - Deck of Cards
- 32:20Memory Test - Deck of Cards
- 34:20JDK Collections - Count By
- 35:12Apache Collections - Count By
- 35:58Eclipse Collections - Count By
- 38:49JDK Collections - Deal Hands
- 39:44Eclipse Collections - Deal Hands
- 41:44Collection Framework Comparison
related talks
48mCollections.compare(JDK, Eclipse, Guava, Apache...);
47mJava's Hidden Gems: Tools and Libraries
40mGS Collections & Java 8: Functional, Fluent, Friendly & Fun
52mCollections Refueled
48mA journey to JVM Excellence: Navigating JDKs and JVMs
39mJava's Hidden Gems: Tools and Libraries
51mCollections Corner Cases
50mWelcome to the Jungle - A safari through the JVM landscape
