tl icon indicating copy to clipboard operation
tl copied to clipboard

Feature request: a new mode to make teal compiler a running service with cache mechanism

Open BLKTower opened this issue 2 months ago • 2 comments

For now, it takes quite a long time for our vscode plugin to get the check results after users edits, since every edit will trigger a teal check, and since it is a one-shot compile with no cache, it basically has to compile the whole project, and our teal projects are getting bigger and bigger and the compling time is getting longer and longer.

Ideally, the teal can provide a mode to run as a service, and all previous compilation results are cached. Whenever we edit a file, only the files in the dependency graph that depend on it need to be recompiled. That should massively improve our plugin's user experiences.

BLKTower avatar Nov 06 '25 00:11 BLKTower

For now, it takes quite a long time for our vscode plugin to get the check results after users edits, since every edit will trigger a teal check, and since it is a one-shot compile with no cache, it basically has to compile the whole project, and our teal projects are getting bigger and bigger and the compling time is getting longer and longer.

Ideally, the teal can provide a mode to run as a service, and all previous compilation results are cached. Whenever we edit a file, only the files in the dependency graph that depend on it need to be recompiled. That should massively improve our plugin's user experiences.

I belive with teal-language-server this should be much more managable and faster

Frityet avatar Nov 24 '25 18:11 Frityet

For now, it takes quite a long time for our vscode plugin to get the check results after users edits, since every edit will trigger a teal check, and since it is a one-shot compile with no cache, it basically has to compile the whole project, and our teal projects are getting bigger and bigger and the compling time is getting longer and longer. Ideally, the teal can provide a mode to run as a service, and all previous compilation results are cached. Whenever we edit a file, only the files in the dependency graph that depend on it need to be recompiled. That should massively improve our plugin's user experiences.

I belive with teal-language-server this should be much more managable and faster

Wow, that's interesting. I haven't had a chance to look into that LSP implementation. How do they manage to get it to work? I thought it'd be impossible without teal compiler side support.

BLKTower avatar Nov 26 '25 01:11 BLKTower