use StackFallbackAllocator in zig bytecode gen #1156
Labels
builtins
Relates to roc builtins like Bool, List, Str ...
perf-emitted
The performance of emitted Roc code, as opposed to the compiler itself.
Milestone
In the various
walk
functions, we reserve space for the accumulator. Currently that space is allocated on the heap, but with aStackFallbackAllocator
we could automatically allocate small accumulator values on the stack (and most accumulator values will be small). Sadly, this allocator is broken in zig 0.7.1, but there has been a fix ziglang/zig#7425 that will be in 8.0.0.I tried copying the fixed implementation into our project, but could not get that to work (see 858f19f)
The text was updated successfully, but these errors were encountered: