Evaluating julia code using eval_code
can be slow if the number of local variables is very large
#517
Labels
eval_code
can be slow if the number of local variables is very large
#517
In some cases with very big functions with lots of local variables, this code in
eval_code
:JuliaInterpreter.jl/src/utils.jl
Lines 606 to 609 in 5ce0048
can become quite slow (on the order of 10 seconds). There might be a smarter way to do this than to generate a big expression with all the locals (and slots and SSA values) and
eval
it so that the time of execution scales with the size of the input expression and not by the size of the frame. Interpreting the expression in the given frame (non-recursively) might work.The text was updated successfully, but these errors were encountered: