Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TS performance regression in compiler types #1046

Merged
merged 1 commit into from
Feb 17, 2020
Merged

Conversation

krisselden
Copy link
Contributor

@krisselden krisselden commented Feb 17, 2020

Improved compiler types and fixes performance issues with type checking opcode-compiler statements and expressions that get even worse if you upgrade past typescript 3.6.

The Compiler implementation is shared since it is the same and only varies by generics now (as I think was originally intended).

The mapping types are now derived from Statement and TupleExpression, so they are related and stay in sync.

Also, move const ATTR_BLOCK out of compiler since it wasn't used there nor seemed related since it is only used in the component helper and WrappedComponent. Moved to component helper which uses it and WrappedComponent uses it but already was dependent on the component helper.

@krisselden krisselden merged commit 11cc83b into master Feb 17, 2020
@krisselden krisselden deleted the compiler-types branch February 17, 2020 21:42
@rwjblue rwjblue changed the title [CLEANUP] Fix compiler typing Fix TS performance regression in compiler types Feb 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants