Skip to content

Commit

Permalink
Crafting speedup
Browse files Browse the repository at this point in the history
This greatly increases crafting performance, especially in worlds with many mods.

Approved by @kwolekr.

Introduces a hash-type-layered fall-through mechanism, where every layer specifies one hash algorithm,
and the "deeper the fall", the more collisions to expect for the algorithm. One Craft definition
only resides at one layer, which improves speed for lower layers (and a complete fail), due to most
craft definitions residing at high layers.

Due to the fall-through design, the undocumented behaviour that later craft recipes
override older ones had to be weaked up a bit, but craft recipes with the same hash and layer
will still override.
  • Loading branch information
est31 committed Apr 5, 2015
1 parent fedbbc8 commit 334e704
Show file tree
Hide file tree
Showing 3 changed files with 349 additions and 88 deletions.

0 comments on commit 334e704

Please sign in to comment.