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

Performance optimization on the extract #17

Open
gillchristian opened this issue Sep 7, 2019 · 0 comments
Open

Performance optimization on the extract #17

gillchristian opened this issue Sep 7, 2019 · 0 comments
Labels
Extract Extracting function types from TS modules

Comments

@gillchristian
Copy link
Member

Currently extracting takes way too long, around 10-20s per project, there are +6k projects in DefinitelyTyped (the whitelist will end up having quite some many projects as well).

Now we use the ts-morph wrapper around TypeScript compiler to extract. It supports very handy methods that help to easily extract types, it was great for PoC and maybe v1 as well.

We could consider

  • Using tsc directly, probably getting some performance improvements out of it.
  • Using swc: A JS compiler written in Rust. The v1 already supports TypeScript. They are working on type checking but not sure if that's necessary as we should trust projects to be published with types already working.
@gillchristian gillchristian added the Extract Extracting function types from TS modules label Sep 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Extract Extracting function types from TS modules
Projects
None yet
Development

No branches or pull requests

1 participant