Answer the question
In order to leave comments, you need to log in
Should I take an 8 core processor to speed up WebPack / Typescript compilation?
Now it's core i7 i7700 + 32GB RAM, SSD. Other software does not need acceleration, only WebPack compilation. An incremental build takes about 11 seconds, I want less. The battle with the settings of WebPack itself has not yet yielded tangible results. The current processor has 4 cores, during compilation the processor is loaded by 30 percent. New processors from AMD on benchmarks show twice the result, but there are 8 or more cores. The performance per core is about the same. Therefore, there are huge doubts that WebPack will be able to parallelize well and use all the power, and replacing hardware is not cheap.
Answer the question
In order to leave comments, you need to log in
No, it's not worth it. I have an i9 9900k and the speed is not much higher
Little depends on iron, if the developers did not set as their goal the analysis of the configuration with the subsequent distribution of work with the maximum use of available resources, then the result will be the same.
You can parallelize the assembly of different entries
https://github.com/trivago/parallel-webpack
+ parallelize the compression
https://webpack.js.org/plugins/terser-webpack-plug...
You can select a ramdisk from these 32 gigs, dump everything on it - and simply check if the build speed is limited by the disk.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question