EfficientHashing

⭐ — (14 endorsements) 📥 204,913 downloads 📌 v1.0.0 📅 12/1/2025
🟡 Updated this year

By ZZZank · fabric

⬇ Download Mod Source: Modrinth 📅 Updated: 11/28/2025 📅 Created: 12/1/2025
⚠️ Install Order · 2 steps
1🛠️ Forge — Minecraft Forge (mod loader) Download ↗
2🛠️ Fabric — Fabric Loader Download ↗

Install in this order, then this mod last — most mods fail to load without their framework and dependencies in place.

🔍 Analysis

  • 👍 0.0% endorsement rate
  • 🏆 #408 of 1032 fabric mods in this game by downloads

📋 About This Mod

# 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: (https://github.com/ZZZank/EfficientHashing/blob/master/_dev/hashing_java/collisions.md) ### 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: (https://github.com/ZZZank/EfficientHashing/blob/master/_dev/hashing_java/benchmark.md) ### 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.

# 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: (https://github.com/ZZZank/EfficientHashing/blob/master/_dev/hashing_java/collisions.md)

### 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: (https://github.com/ZZZank/EfficientHashing/blob/master/_dev/hashing_java/benchmark.md)

### 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.

🤖 AI-enhanced — based on mod data

📊 Mod Details

Game
Minecraft Mods
Author
ZZZank
Version
1.0.0
Downloads
204,913
Endorsements
14
Category
fabric
Created
12/1/2025
Updated
11/28/2025
Game Versions
1.21.1
Tags
optimization

🔧 How to Install Minecraft Mods Mods

Download from Modrinth. Use Prism Launcher or drop into your mods folder.

📖 Full step-by-step install guide for Minecraft Mods →

Visit the official mod page for specific installation instructions for this mod.

🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Mods commands, item IDs, and more.

❓ Frequently Asked Questions

Which Minecraft Mods versions does EfficientHashing support?

The author lists 1.21.1. Other versions may work but are untested by the author.

What is the latest version of EfficientHashing?

Version 1.0.0, published 2025-11-28 with 204,913 downloads recorded at the source.

Keep browsing — more Minecraft Mods mods await

📋 All Minecraft Mods Mods 🏆 Top 25 📂 More fabric 👤 More by ZZZank 🔎 Similar Mods 🌐 Best fabric (All Games) 🔀 Check Compatibility ⚖️ Compare Mods 🆕 New Mods