Hello there, so a friend of mine is working on a module which has a lot of type files (around 280~) and when I use his module the performance of intellisense / type checking in general slows down a lot to a point where you can't really code anymore since you have to wait for the autocomplete to catch up. So my question is if there would be a significant speed improvement in bundling all of these declaration files into one singular file and if that's the case how I/my friend should do it. Because logically speaking it makes sense for it to really slow down since it has to acquire all these 280 type files because we need to import everything into one big class which takes up IO.
#Slow intellisense / type acquisition / checking
4 messages · Page 1 of 1 (latest)
But I couldn't really find a native way to bundle them all into one file & if it would make a difference. So would we need to use something like rollup to accomplish this and would it even speed up anything?
i doubt the bottleneck is in loading the files. more likely it's the type checking itself that is slow. for help diagnosing/fixing that, https://github.com/microsoft/TypeScript/wiki/Performance is a good resource
I ran some tests, left is without said module, right is with said module and the only thing that really seeks out for attention is the instantiations happening