Kristoffer Carlsson
Kristoffer Carlsson
(I deleted my earlier reply because I posted it too early, sorry).
Maybe the test can be changed to ```julia q = 0 function h() eval(:(q = 2)) return q end @test @interpret(h() == 2) ``` ?
I think @aviatesk has said that this whole optimization of resolving values early is invalid anyway though..
Can this be benchmarked on a somewhat large environment. Especially on Windows? The is also a cache that can be used that the precompile code uses?
https://github.com/JuliaLang/julia/pull/59670 caused us not to be able to pass a cache to `Base.isprecompiled` anymore.
I think this is a good idea and we should imo also: - Give it a docstring. - Make it public. - Give it a better name.