-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Refactor the build! #16482
Refactor the build! #16482
Conversation
ember.debug.js, ember-template-compiler.js, and ember-testing.js
It is now possible to use `*.ts` files in all/any location under `packages/**`...
I have uploaded a tarball including |
Can you share the before/after slow-tress output for |
The timings seem roughly unchanged (expand for specifics...)BeforeCold Initial Build
Warm Initial Build
JS Rebuild
AfterCold Initial Build
Warm Initial Build
JS Rebuild
|
before: 2708ms
after: 12413ms this seems like a regression? |
The cold initial and rebuild times are roughly the same, and I didn't compare the warm initial build times after prepping the numbers. Will dig into it a bit and see what we can do to improve. Ultimately, IMHO the overall benefits of this PR (mentioned in the PR description) are significant and are valuable enough to justify the (hopefully temporary) warm initial build regression... |
After starting to poke at that, I realized that the numbers you were comparing were the "Before: JS rebuild" time and "After: Warm Initial Build" time. This is because I had forgotten to paste in the "Before: Warm Initial Build" time 😭. I've updated the comment above, but here is a screenshot of what it was before (where I accidentally trolled you 😢 ): Ultimately, I still think there is a small regression for initial builds (~ 3% on initial cold, ~ 9% on initial warm) but a small improvement for rebuilds. Definitely still room for improvement! |
ya that type of regression isn't fatal, carry on. Thanks for digging in. |
.ts
usage throughout all ofpackages/**
(just rewrite a file from*.js
to*.ts
and make linting happy 😝 )TODO:
lib/packages.js
packages/*/tests
"just work" witheach-package-tests
node
test runsember-utils
package toember-template-compiler.js
asset