-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
282c0d1
commit da3afe5
Showing
4 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
da3afe5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update to Typescript 3.9.... Is MUCH faster!!!!
I've been the whole week trying to find time to update to TS 3.9. The compilation performance is probably the biggest pain point in Signum Framework right now, mainly because of Typescript.
I knew performance was the main topic of this release, so before the update I took the time to make some benchmarks compiling with TS 3.8.
I wanted to measure four different things:
transpileOnly
so is typically faster.transpileOnly
so is typically super fast (<1s).I repeated each measure at least two times till I saw the results look stable.
Then I installed TS 3.9:
TypeScriptToolsVersion
in the*.React.csproj
to3.9
(for visual studio integration)typescript
/ts-loader
/webpack
inpackages.json
in Southwind.React signumsoftware/southwind@a244722#diff-68bd95866802b39d58eb29f8c9e9090f (for actual JS code generation)and I repeated the measures again.
Here are the results:
You are seeing it right... a fresh compile takes now 41% time less, or is 1.68x faster. This is quite remarkable since this time is including all the C# code.
But what is more important, if you make a change in Typescript in Signum.React (most dependent one) and you compile again, now it takes 84% less time, of is FUCKING 6.25 times faster!! 🛫🛫🛫 Somehow Typescript is much smarter about rebuilds now.
Update: 😢 Looks like this numbers are exaggerated. I wasn't able to reproduce it in another project / machine
Sorry for your coffee times, no excuses anymore.
da3afe5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect!
da3afe5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great update! Thanks! it was definitely worth losing coffee times 😄 😄
da3afe5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bad news, after doing similar measures in another application and computer, the results are not so awesome.... :(
If you can try before/after the upgrade will be awesome.
da3afe5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.