orendain / DemeoMods

Mods for the game of Demeo, as well as the Demeo modding framework, HouseRules.
MIT License
42 stars 11 forks source link

Avoid searching all types when loading a ruleset by filename. #515

Closed orendain closed 1 year ago

orendain commented 1 year ago

Avoids searching all types when loading rulesets from files. Instead of finding rules to instantiate by searching the entire set of types loaded into memory, we instead only search the known HouseRules registered rule types.

This should result in much speedier load times when loading rulesets from files. What may have taken 60+ seconds (just for the JSON loading phase) should now take single-digit seconds.