JuliaSymbolics / SymbolicUtils.jl

Symbolic expressions, rewriting and simplification
https://docs.sciml.ai/SymbolicUtils/stable/
Other
538 stars 108 forks source link

`arguments` is slow during term rewriting due to sorting overhead #250

Open YingboMa opened 3 years ago

YingboMa commented 3 years ago

We should just match on dictionaries for better perf.

YingboMa commented 3 years ago

julia> @time simplify(Symbolics.termify(NuDerTf_sym.val));
  0.738400 seconds (6.38 M allocations: 204.931 MiB, 5.61% gc time)

julia> @time simplify(NuDerTf_sym.val);
  1.274967 seconds (11.43 M allocations: 358.066 MiB, 5.04% gc time)