Use FastUtil Long/Int HashMap's
For DataWatcher, swap out plain Integer key HashMap for a Int2ObjectOpenHashMap For ChunkProviderServer, swap out CB's custom LongHashMap with Long2ObjectOpenHashMap These collections are super fast as seen http://java-performance.info/hashmap-overview-jdk-fastutil-goldman-sachs-hppc-koloboke-trove-january-2015/
This commit is contained in:
parent
a785a9460e
commit
f051ea2ab3
2 changed files with 60 additions and 2 deletions
|
@ -1,8 +1,10 @@
|
|||
From 8856eed99403409f9904fb8315ff4f2e95065239 Mon Sep 17 00:00:00 2001
|
||||
From bc17a29787a7d9c927d9812b74db623b9ca066b2 Mon Sep 17 00:00:00 2001
|
||||
From: Aikar <aikar@aikar.co>
|
||||
Date: Mon, 21 Mar 2016 18:17:14 -0400
|
||||
Subject: [PATCH] Add minimal fastutil int based collections
|
||||
Subject: [PATCH] Add minimal fastutil int/long based collections
|
||||
|
||||
Importing entire FastUtil library would be massive. Just import minimal useful ones
|
||||
we might actually use.
|
||||
|
||||
diff --git a/src/main/java/it/unimi/dsi/fastutil/AbstractIndirectDoublePriorityQueue.java b/src/main/java/it/unimi/dsi/fastutil/AbstractIndirectDoublePriorityQueue.java
|
||||
new file mode 100644
|
Loading…
Add table
Add a link
Reference in a new issue