GTNewHorizons / NotEnoughItems

GNU Lesser General Public License v3.0
50 stars 67 forks source link

Concurrent recipe profiler #478

Closed LasmGratel closed 2 months ago

LasmGratel commented 2 months ago

Actually profiles every recipe handler and show them.

Now that finding both crafting and usage recipes runs in parallel, the percentage statistics are removed, but the totalTime field are kept for backwards compatibility.

Added the missing localization of profiler section nei.recipe.concurrent.usage and nei.recipe.concurrent.usage.

Fixed a potential performance issue, where ItemStack can be normalized in-place than an overhead of streaming operations.

Field-Tested in latest GTNH and a Reika modpack of my own.

LasmGratel commented 2 months ago

Null sections are treated as <unnamed> instead of crashing.