codon icon indicating copy to clipboard operation
codon copied to clipboard

the stdlib should be compiled every time the code is compiled, it will be better if cache the stdlib

Open dipadipa opened this issue 2 years ago • 1 comments

dipadipa avatar Feb 24 '23 08:02 dipadipa

The challenge here is "generic" functions like

def foo(x):
    return x * 3

which can take int, float, str, etc. One idea we've thought about is pre-compiling functions like this for the common types and then linking them (with some LTO so we can still inline etc.).

arshajii avatar Feb 24 '23 16:02 arshajii