CurseForge · Minecraft mod
EfficientHashing
better hashing algorithm for Vec3i & BlockPos
This page is having a moment, so a few details may be a little behind.
Quick answer
Which EfficientHashing release should I use?
EfficientHashing 1.0.2 for 26.1.2 neoforge targets 26.1.2 with NeoForge. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.
Where it goes
Is EfficientHashing required on the client, server, or both?
The project page does not say whether this file belongs on the client, dedicated server, or both.
The source does not explicitly classify this release as client-only or server-only.
What else does EfficientHashing 1.0.2 for 26.1.2 neoforge need?
1.0.2 for 26.1.2 neoforge. Change the file and its required mods may change too.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add EfficientHashing without breaking your instance.
Built for EfficientHashing 1.0.2 for 26.1.2 neoforge. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 1.0.2 for 26.1.2 neoforge. It targets 26.1.2 with NeoForge; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
The project page does not say whether this file belongs on the client, dedicated server, or both.
- 04
Pick the file you checked
Use the “Get this file” button beside 1.0.2 for 26.1.2 neoforge. It opens that exact file at the source.
About this project
What does EfficientHashing add?
EfficientHashing
EfficientHashing replaced hashing algorithm of Vec3i (and its subclasses like BlockPos) with one that's much much more collision resistant, providing performance improvement in basically wherever its hashcode is used.
1. Collision Resistant
We can prove this by doing a simple test. Test is perform by hashing every combination of BlockPos between new BlockPos(-100, -20, -100) and new BlockPos(100, 50, 100) (inclusive), with the total object count reaching 2,800,000+.
Vanilla algorithm produced 194,571 unique hashcode in total. This means that at least 93% of all BlockPos hashcode are colliding with each other.
And PhiMix, the algorithm used by EfficientHashing, produced 2868471 unique hashcode in total. This means that every unique BlockPos object gets its unique hashcode, and NONE of all BlockPos hashcode are colliding.
| Unique Hashcode | Collision | Collision Rate | |
|---|---|---|---|
| Vanilla | 194,571 | 2,673,900 | 93.2% |
| EfficientHashing | 2,868,471 | 0 | 0% |
If you're curious about the actual test code, see: here
2. Performant
Benchmark time:
Benchmark Mode Cnt Score Error Units
VecHashingBenchmark.mixin thrpt 5 47.012 ± 1.029 ops/s
VecHashingBenchmark.vanilla thrpt 5 49.326 ± 1.507 ops/s
PhiMix is about 95.3% the performance of original hashing algorithm. Yes, it's slower, but this performance gap is relatively tiny compared to other hashing solution, and can be easily outweighed by the significant improvement in hash collision resistance.
If you're curious about the actual benchmark code, see: here
3. Vanilla compatible
In vanilla hashing algorithm, if you hash the "default" instance of BlockPos/Vec3i, aka new BlockPos(0, 0, 0), the produced hashcode will be 0, which happens to be the "default" instance of integer. This special behavior is also present in PhiMix, providing the best possible vanilla compatibility.
Project description from CurseForge.
Pick your setup
EfficientHashing by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.21.1
2 loader builds1.21
2 loader builds1.20.1
2 loader builds1.20
2 loader builds1.19.4
1 loader build1.19.3
1 loader build1.19.2
2 loader builds1.19.1
2 loader builds1.19
2 loader builds1.18.2
2 loader builds1.18.1
2 loader buildsShowing the newest 12 of 13 game versions. Older files are in the list below.
Check the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
EfficientHashing versions and loaders
1.0.2 for 26.1.2 neoforge
efficient_hashing-neoforge-1.0.2+26.1.2.jar
8 Oct 2026
1.0.2 for 26.1.2 fabric
efficient_hashing-fabric-1.0.2+26.1.2.jar
8 Oct 2026
1.0.2 for 1.21.1 neoforge
efficient_hashing-neoforge-1.0.2+1.21.1.jar
8 Oct 2026
1.0.2 for 1.21.1 fabric
efficient_hashing-fabric-1.0.2+1.21.1.jar
8 Oct 2026
1.0.2 for 1.19.2 forge
efficient_hashing-forge-1.0.2+1.19.2.jar
8 Oct 2026
1.0.2 for 1.20.1 forge
efficient_hashing-forge-1.0.2+1.20.1.jar
8 Oct 2026
1.0.2 for 1.20.1 fabric
efficient_hashing-fabric-1.0.2+1.20.1.jar
8 Oct 2026
1.0.2 for 1.18.2 fabric
efficient_hashing-fabric-1.0.2+1.18.2.jar
8 Oct 2026
1.0.2 for 1.18.2 forge
efficient_hashing-forge-1.0.2+1.18.2.jar
8 Oct 2026
1.0.2 for 1.19.2 fabric
efficient_hashing-fabric-1.0.2+1.19.2.jar
8 Oct 2026
1.0.1 for 26.1.2 neoforge
efficient_hashing-neoforge-1.0.1+26.1.2.jar
8 Oct 2026
1.0.1 for 26.1.2 fabric
efficient_hashing-fabric-1.0.1+26.1.2.jar
8 Oct 2026
Looking for an older file? The official CurseForge project page is in Resources.