Skip to content

Final resource reload optimization - #73

Merged
ABKQPO merged 7 commits into
masterfrom
final-resource-reload-optimization
Sep 6, 2026
Merged

Final resource reload optimization#73
ABKQPO merged 7 commits into
masterfrom
final-resource-reload-optimization

Conversation

@danyadev

@danyadev danyadev commented Sep 6, 2026

Copy link
Copy Markdown
Member

Summary

Overall GuideNH reload work went from 574 ms to 413 ms (-28%), with sampled allocations dropping from 649 MiB to 303 MiB (-53%).

Change Result
1. Share the language cache and read .lang files only once Language work: -60 ms (-44%), -165 MiB (-41%)
2. Avoid temporary objects while building the language index buildIndex: -22 ms (-17%), -52 MiB (-32.5%)
3. Don't allocate localized page bodies while indexing .lang files Same wall time, buildIndex: -40 MiB (-37%)
4. Parse page priority only when several candidates compete Same wall time, -15 MiB
5. Avoid temporary path strings while scanning ZIP resource packs scanZipPack: -21 ms (-24%), -112 MiB (-48%)

Checklist

  • I have tested this PR in DevEnv
  • I have tested this PR in Fullpack
  • This PR is in compliance with the GTNH AI Policy
  • This PR requires another PR in order to merge

danyadev and others added 7 commits September 5, 2026 23:42
Cuts 60ms of lang-related time (-44%) and 165mb of allocations (-41%)
Cuts 22ms of buildIndex (-17%) and 52mb allocations (-32.5%)
doesn't affect perf; cuts 40mb of buildIndex or -37%
saves 15mb and deduplicates some code
for scanZipPack: -21ms (-24%) and -112mb (-48%)
@ABKQPO
ABKQPO merged commit 6d85ce8 into master Sep 6, 2026
1 check passed
@ABKQPO
ABKQPO deleted the final-resource-reload-optimization branch September 6, 2026 02:16
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