Skip to content

Cache root MIX access for repeated operations#2

Open
Krisztiaan wants to merge 3 commits intora2web:mainfrom
Krisztiaan:perf/mix-parser-cache-mixen-core
Open

Cache root MIX access for repeated operations#2
Krisztiaan wants to merge 3 commits intora2web:mainfrom
Krisztiaan:perf/mix-parser-cache-mixen-core

Conversation

@Krisztiaan
Copy link
Contributor

@Krisztiaan Krisztiaan commented Feb 24, 2026

Summary

  • add a root-MIX cache in MixParser keyed by File instance to avoid repeated full archive reads/parses
  • route parseFile and extractFile through the shared cached root archive
  • keep archive parsing on existing studio codepath (no new mixen dependency)

Why

  • repeated file selection/preview/export was re-reading and re-parsing full MIX archives
  • this reduces redundant main-thread work and improves responsiveness on large archives

Validation

  • npm run build

@Krisztiaan Krisztiaan marked this pull request as draft February 24, 2026 13:17
@Krisztiaan Krisztiaan changed the title Cache root MIX access and harden parse limits Cache root MIX access and harden parsing Feb 24, 2026
@Krisztiaan Krisztiaan changed the title Cache root MIX access and harden parsing Cache root MIX access for repeated operations Feb 24, 2026
@Krisztiaan Krisztiaan marked this pull request as ready for review February 24, 2026 19:09
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