buzz icon indicating copy to clipboard operation
buzz copied to clipboard

Resize stack when needed

Open giann opened this issue 3 years ago • 1 comments

Right now the stack is a fixed array of 100 000 elements.

  • Detect when stack is overflowed
  • If under a high limit (lua is 1 000 000), realloc stack (requires to update any reference to it)
  • If higher that limit, throw .StackOverflow

giann avatar Aug 09 '22 13:08 giann

Reading https://without.boats/blog/why-async-rust/ I realized that creating a fiber (and so a new stack) could be a performance and memory impact.

Do we need relatively short stack at the beginning and grow or shrink it as needed?

giann avatar Oct 18 '23 04:10 giann