There's no significant difference in the performance of get_init_items, get_item_usages("default:stick") is ~92% faster, and get_progressive_items is ~54% faster.
To test, the benchmark commit can be cherry-picked from my master branch.
Fuels are cached because get_craft_result is very slow (try commenting out cache_fuel in get_init_items).
Also fixes shapeless icon not showing and the wrong tooltip being shown before that.
Sorry it's so big.
Benchmark in dreambuilder:
master:
PR:
There's no significant difference in the performance of
get_init_items
,get_item_usages("default:stick")
is ~92% faster, andget_progressive_items
is ~54% faster.To test, the benchmark commit can be cherry-picked from my master branch. Fuels are cached because
get_craft_result
is very slow (try commenting outcache_fuel
inget_init_items
).Also fixes shapeless icon not showing and the wrong tooltip being shown before that. Sorry it's so big.