Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Concurrent recipe profiler #478

Merged
merged 2 commits into from
May 4, 2024
Merged

Conversation

LasmGratel
Copy link

@LasmGratel LasmGratel commented May 4, 2024

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.

@Dream-Master Dream-Master requested a review from a team May 4, 2024 09:57
@LasmGratel
Copy link
Author

LasmGratel commented May 4, 2024

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

@Dream-Master Dream-Master requested a review from slprime May 4, 2024 11:47
@Dream-Master Dream-Master merged commit 5056fe5 into GTNewHorizons:master May 4, 2024
1 check passed
Dream-Master pushed a commit that referenced this pull request May 4, 2024
* concurrent recipe profiler

* eliminate NPE by giving nulls a name

(cherry picked from commit 5056fe5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants