Optimization of sys::truncate_stack
procedure in stdlib
#1334
Labels
stdlib
Related to Miden standard library
sys::truncate_stack
procedure in stdlib
#1334
Our current sys::truncate_stack procedure does quite a bit of unnecessary work. I'm thinking we can improve it as follows:
In cases when stack depth is 20 or smaller, this procedure would take ~20 cycles to execute. For any extra word to be dropped, another ~12 cycles would be required. Compare with the current procedure which would require ~50 cycles to execute in the best case.
The text was updated successfully, but these errors were encountered: