Skip to content

AI, perf: optimize jar zip indexing, eliminate rwlock contention, and fix false positives - #4

Merged
dest4590 merged 1 commit into
mainfrom
improvements
Oct 25, 2026
Merged

dest4590 merged 1 commit into
mainfrom
improvements

Conversation

@dest4590

Copy link
Copy Markdown
Owner

summary

  • massive zip scanning speedup: replaced per-entry ZipArchive::new calls inside rayon par_iter with single-pass memory extraction and parallel processing. scans that previously took 1.5+ minutes or timed out now finish in 0.6–2.2 seconds.
  • removed thread contention: eliminated global RwLock<HashSet<String>> in SAFE_STRING_CACHE that caused thread lock contention across worker threads.
  • fixed reflection false positives: removed the fallback in guess_reflected_target that treated any field name with length > 5 as a reflection target.
  • fixed recursion depth: properly incremented archive_depth + 1 in scan_nested_archive_buffer.

benchmarks

  • CelestialBeta.jar (22 mb, ~19k entries): 1m 33s -> 0.61s (~150x faster)
  • Relake.jar (44 mb, ~26k entries): timeout (>180s) -> 2.24s

@dest4590
dest4590 merged commit 29f3731 into main Oct 25, 2026
0 of 2 checks passed
@dest4590
dest4590 deleted the improvements branch October 25, 2026 11:41
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