effekt-lang / effekt

A research language with effect handlers and lightweight effect polymorphism
https://effekt-lang.org
MIT License
294 stars 14 forks source link

Cache compiler after stdlib to speed up tests #450

Closed b-studios closed 1 month ago

b-studios commented 1 month ago

This Draft PR experiments with caching the compiler after compiling a trivial file.

On my machine, this way I can run all tests (except ML) within 55 seconds (they run in parallel, though). For the ML backend the performance of mlton is still the limiting factor.

b-studios commented 1 month ago

Apparently it did not solve the Text File Busy :)

java.io.IOException: Cannot run program "/home/runner/work/effekt/effekt/./out/tests/effekt.chezschemelifttests/patternmatching": error=26, Text file busy
b-studios commented 1 month ago

Overall the caching is quite successful: it brings down the CI times from about 18min to roughly 8-9min where most of the time is spent in the ML compiler.