Skip to content
This repository was archived by the owner on Dec 1, 2019. It is now read-only.

Slow rebuilds comparing to ts-loader? #269

Closed
asadsahi opened this issue Nov 14, 2016 · 12 comments
Closed

Slow rebuilds comparing to ts-loader? #269

asadsahi opened this issue Nov 14, 2016 · 12 comments

Comments

@asadsahi
Copy link

Detail can be found in this issue. Rebuilds are ~4 times slower compared to ts-loader. Please let me know if more details required.

@wclr
Copy link

wclr commented Nov 28, 2016

I too notices that recompile takes long. =)

image

image

@s-panferov
Copy link
Owner

@whitecolor please provide some additional information about your setup: OS, node version, at-loader version, tsconfig

@wclr
Copy link

wclr commented Nov 29, 2016

@s-panferov
It is not a problem of alt but something with webpack I believe. You you may check OP issue, my post is not relevant.

@asadsahi
Copy link
Author

asadsahi commented Nov 29, 2016

@s-panferov in my case I am using webpack 2 beta 27 as well and in the same project with ts-loader rebuild is ~143 ms and ATL starts rebuilding late for some reason and when it rebuilds it takes around ~3688ms. Stats are given in the link given in my issue above.

@s-panferov
Copy link
Owner

@asadsahi what version of the loader you use?

@asadsahi
Copy link
Author

Last time when I tried it was:

"ts-loader": "1.2.2",

Vs

 "awesome-typescript-loader": "2.2.4",		

@wclr
Copy link

wclr commented Nov 29, 2016

@asadsahi
btw try updated (last) versions of both.

@s-panferov
Copy link
Owner

@asadsahi could you please try [email protected] on your codebase?

@asadsahi
Copy link
Author

Thanks @whitecolor those happen to be latest versions.

@s-panferov will try with beta.9. Give me a sec.

@asadsahi
Copy link
Author

asadsahi commented Nov 29, 2016

@s-panferov , Thanks for bringing magic back in ATL again.

With ts-loader:

image

With awesome-typescript-loader:

image

Means, ATL is taking lead in 3.beta9 again.

BTW, what magic you have done? :)

@s-panferov
Copy link
Owner

@asadsahi the loader forks a process with TypeScript compiler and communicates with it via IPC. This leads to better parallelism.

@wclr
Copy link

wclr commented Nov 29, 2016

I can confirm that beta.9 works at least faster than beta.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants