POC: embedding compiler state for `regal lint` command
anderseknert opened this issue · comments
Anders Eknert commented
And possibly other use cases. The issue this would address is the ~100 ms compilation time the bundle currently requires, and which is needed for all invocations of regal lint
. The LSP doesn't suffer from this as it is a continuous process and one where prepared queries will make sure that compilation state is preserved between invocations.
@srenatus suggested taking a look at gob, and pointed to guide on that topic.
We should look into:
- If this works
- If it saves enough time to justify the added complexity
- Decide on whether to do this based on that