Mojang / DataFixerUpper

A set of utilities designed for incremental building, merging and optimization of data transformations.
MIT License
1.19k stars 138 forks source link

Merge common optic prefixes and optimise within folds #73

Closed Gegy closed 1 year ago

Gegy commented 1 year ago

We noticed a few cases while reviewing #72 where the optimised fixer functions could be further reduced. This PR makes a few changes:

This comes at a slight cost in datafixer optimisation time, though it's entirely insignificant enough to be a concern and we end up with a more optimised function at the end. 🎉

An example before and after for the chunk datafixer from v100.