Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Partially fixes #302
With the following input declaration file:
The execution time of
./node_modules/.bin/dts-bundle-generator src/index.d.ts --no-check
dropped from 2.64s to 1.26s (more than 2x), which is much closed to just runningtsc
0.96s (but still not ideal).dts-bundle-generator src/index.d.ts --no-check
1dts-bundle-generator src/index.d.ts
2dts-bundle-generator src/index.ts --no-check
dts-bundle-generator src/index.ts
2So overall it is around 40-50% execution time decrease on this particular example. It is worth to say that
effect
is a massive library and it pushes the compiler a lot in terms of types, parsing/processing/validation time.Footnotes
If all input files are declaration files then it goes much faster because there is no need in extra ↩
--no-check
disables extra compilation after the job is done thus is faster, but less safer ↩ ↩2