Skip to content

extract enum runtime-emission bundle optimizations#543

Open
colinaaa wants to merge 4 commits intomainfrom
colin/0316/enum-runtime-elim
Open

extract enum runtime-emission bundle optimizations#543
colinaaa wants to merge 4 commits intomainfrom
colin/0316/enum-runtime-elim

Conversation

@colinaaa
Copy link
Copy Markdown
Owner

Summary

  • why: isolate the >3-commit enum runtime-emission optimization track into a standalone branch for focused review.
  • what: applies enum runtime-emission elimination across packages/react/runtime/src/lifecycleConstant.ts, packages/react/runtime/src/gesture/types.ts, packages/react/runtime/src/opcodes.ts, and packages/react/runtime/src/snapshot/dynamicPartType.ts; behavior is unchanged.
  • impact: preserves the autoresearch bundle-size reduction path for this track at approximately 2303 bytes.

…ects + exported union types. This preserves API usage (, ) while avoiding TypeScript enum runtime IIFE/reverse-mapping overhead. Runtime tests pass.\n\nResult: {"status":"keep","bundle_size":94480}
…ported union type. This removes emitted enum runtime scaffolding while preserving callsites/types. Tests pass; bundle reduced to 93,751 bytes.\n\nResult: {"status":"keep","bundle_size":93751}
…umeric constants (). Preserves behavior while removing runtime enum IIFE. Tests pass; bundle reduced to 93,448 bytes.\n\nResult: {"status":"keep","bundle_size":93448}
…as, and update discriminant type accordingly. Behavior preserved; tests pass. Bundle reduced to 92,878 bytes.\n\nResult: {"status":"keep","bundle_size":92878}
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