Closed Sumith1896 closed 7 years ago
Ah, that's annoying, that's a Rosette function. It's using a lot of append
, which takes linear time, so symbolics
then becomes quadratic, which is the issue here. While we could rewrite coerce-evaluate
, the better solution is to just improve symbolics
in Rosette -- I've submitted a PR to Rosette (https://github.com/emina/rosette/pull/59), once that's accepted this problem should go away.
I think we are good here now, closing if no objections.
num2helper
prints code very slowly. My initial hunch is that this is due to multiple callscoerce-evaluate
(particularlysymbolics
) in that. This can be seen from the trace:Can we write
coerce-evaluate
better than this?