Hacker News
points by tialaramex 1 day ago | 0 comments
Note that in Odin you are already paying for an extra register because you silently move a magic "context" variable around in a register.

I haven't looked at the details in Odin, but it's definitely sensible to have the growth decision inline, which means only the (rare) growth itself needs the extra parameter.

[–] philippta 1 day ago
FWIW you can make procedures contextless:

    proc "contextless" ()
[–] tialaramex 1 day ago
You can, but Odin does not mark these procedures contextless and indeed it mustn't because in some cases it will fill out the allocator values by looking in the context, which it couldn't do if it did not have context.