Skip to content

Perf improvements pass - #10136

Closed
xoxorwr wants to merge 10 commits into
PathOfBuildingCommunity:devfrom
xoxorwr:performance-fixes
Closed

Perf improvements pass#10136
xoxorwr wants to merge 10 commits into
PathOfBuildingCommunity:devfrom
xoxorwr:performance-fixes

Conversation

@xoxorwr

@xoxorwr xoxorwr commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Fixes # .

Description of the problem being solved:

Trying to improve performance in hot paths.

  • assert in hot paths evaluates arguments even when passing
  • unpack, for example, is much slower than direct indexing
  • Using varargs in loop headers is also slow
  • Caching static tables helps reduce GC pressure

Note: This PR is best reviewed commit by commit, each commit targets a specific performance issue on the target file.

Steps taken to verify a working solution:

Link to a build that showcases this PR:

Before screenshot:

After screenshot:

@xoxorwr

xoxorwr commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

It grew a little too big, I'll try to split this PR so it's easier to review.

@xoxorwr xoxorwr closed this Aug 5, 2026
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.

1 participant