3 ms·
TSC doesn't need to "stick around", right? Just a run-once and the program is over? In those cases, https://github.com/fitzgen/bumpalo https://github.com/fitzg
by jkelleyrtp 5y ago
TSC doesn't need to "stick around", right? Just a run-once and the program is over?
In those cases, https://github.com/fitzgen/bumpalo https://github.com/fitzgen/bumpalo works amazingly as an arena. You can pretty much forget about reference counting and have direct references everywhere in your graph. The disadvantage is that it's hard to modify your tree without leaving memory around.
We use it extensively in http://github.com/dioxusLabs/dioxus http://github.com/dioxusLabs/dioxus and don't need to worry about Rc anywhere in the graph/diffing code.
- anonymousCar 5y agoI think --watch mode means it's running while developing
- connor4312 5y agoAdditionally, the language server used to power editors is long lived. TypeScript isn't just the compiler.