About EfficientHashing
From Modrinthbetter hashing algorithm for Vec3i & BlockPos
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.
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
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
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.
Highlights
From source dataGame versions
Supports 13 Minecraft versions, the newest being 26.1.2.
Loaders
Runs on Fabric, Forge and NeoForge.
Footprint
Rated a light load on a server.
EfficientHashing on Nxeon
From our catalogue- One-click install
- Supported on Nxeon Minecraft servers. We download it from Modrinth, place it, and restart the server.
- Server side
- Required on the server
- Server type needed
- Fabric, Forge, NeoForge
- Server load
- light
- Smallest plan we suggest
- Minecraft — 2 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
- Latest build
- 1.0.2, released 2026-10-08
Game versions by loader
| Loader | Game versions | Newest |
|---|---|---|
| Fabric | 1.18 to 26.1.2 (6 versions) | 26.1.2 |
| Forge | 1.18 to 1.20.1 (6 versions) | 1.20.1 |
| NeoForge | 1.21 to 26.1.2 (3 versions) | 26.1.2 |
From 10 recorded builds of EfficientHashing.
Recent builds
| Build | Released | Game versions | Loaders |
|---|---|---|---|
| 1.0.2 | 2026-10-08 | 26.1.2 | NeoForge |
| 1.0.2 | 2026-10-08 | 26.1.2 | Fabric |
| 1.0.2 | 2026-10-08 | 1.21 to 1.21.1 (2 versions) | NeoForge |
| 1.0.2 | 2026-10-08 | 1.21 to 1.21.1 (2 versions) | Fabric |
| 1.0.2 | 2026-10-08 | 1.20 to 1.20.1 (2 versions) | Forge |
| 1.0.0 | 2025-11-28 | 1.21.1 | NeoForge |
Run EfficientHashing on a Minecraft server
Pick a server or deploy a new one above; it is installed in one click.
What kind of mod it is
From the catalogGameplay & overhauls
New mechanics, content and overhauls that change how the game plays.
Runs on your server
From source side supportModrinth lists EfficientHashing as required on the server. Check its Modrinth page to see whether players need it too.
Compatibility
- Game
- Minecraft
- Loaders
- FabricForgeNeoForge
- Runs on
- Serverrequired on the server
- Game versions
- 26.1.2 and 12 earlier
Verified at the source
- ✓ModrinthOfficial listing, checked 2026-10-08Open ↗
- ✓AuthorZZZank, as published on Modrinth
- ✓LicenseLGPL-3.0-onlyFree











