PruvoNet / squiss-ts

High-volume Amazon SQS Poller for Node.js
Apache License 2.0
48 stars 15 forks source link

perf: improving compilation time #120

Closed Raiszo closed 2 years ago

Raiszo commented 2 years ago

Summary

This PR fixes/implements the following bugs/features

Explain the motivation for making this change. What existing problem does the pull request solve?

Compilation time of the library can be decreased by importing aws services directly from their client files instead of the entire SDK. This also reduces the compilation time of projects that use squiss-ts as a dependency.

Test plan (required)

It is not that easy to measure and compare typescript compilation performance in a CI environment. Only added a npm script benchmark that uses tsc's --extendedDiagnostics flag, the advice would be to run this before a merge to notice any regression in compilation performance.

regevbr commented 2 years ago

Thanks for the contribution! I will release a new version soon

regevbr commented 2 years ago

4.4.0 is released