Shares solution builder between instances#1176
Conversation
|
Thanks for both the PRs @sheetalkamat! 🌻 I've looked at both and each seems like a legitimate approach... To your question:
I've never found a need for using different instances myself either; it predates my involvement with Given that it's a feature that's not likely to go away I'm tempted to go with one of the PRs you're suggesting. What are the pros |
|
This one just shares solution builder and uses program/language service as if its own.. the other one just does not create new instance so program/LS are same across instances in that other PR. |
Okay cool. I don't feel strongly about the different approaches; each sounds good! Without having tested it, I'd guess that #1177 may perform slightly better as it's not creating new instances. I haven't tested it and it may be a marginal difference, but maybe #1177 is the way to go. Do you fancy incrementing the version in the |
|
Closing in favour of #1177 which shipped with https://github.com/TypeStrong/ts-loader/releases/tag/8.0.4 |
I am not sure if this right change or not as i dont understand much about config and need for different instances but this came up as part of investigation where multiple instances of solution builder were created because different instances were used. The project in question takes about 2-3 minutes to just check if the solution is upto date adding to perf and memory implications.
I am not sure if we need this PR or people just fix their config file to use same instance instead. (which is what investigation resulted in)