The built-in.smli test takes 26 seconds on Rust (debug mode), compared to 2 seconds on Java. This suggests that the Rust performance can be improved significantly. This task is to investigate the performance and suggest some tasks that will make it faster. Some questions:
- What is the balance of time between parsing, validation and execution?
- If comments and disabled regions (via mode=validate) are removed, do the numbers change significantly?
- Generate a flamegraph (or similar) and identify functions that are surprisingly slow.
- Is something building up and making everything slower? (Divide the test into smaller sections and see whether the total running time is greater than the sum of the parts.)
- Are some data structures slow?
The
built-in.smlitest takes 26 seconds on Rust (debug mode), compared to 2 seconds on Java. This suggests that the Rust performance can be improved significantly. This task is to investigate the performance and suggest some tasks that will make it faster. Some questions: