Zulip Chat Archive

Stream: lean4

Topic: performance difference between `lake exec` vs `#eval`


Alexandre Rademaker (Jun 27 2025 at 14:57):

I am working with an algorithm that needs to read some text files. I noticed a substantial difference in the performance of executing the same function when called from the command line lake exec versus when I tested it using #eval. Is this expected?

Arthur Paulino (Jun 27 2025 at 14:58):

I think so. lake exec is summoning the whole compilation pipeline, producing C code and compiling it to an executable binary.


Last updated: Dec 20 2025 at 21:32 UTC