SymbolicUtils.jl icon indicating copy to clipboard operation
SymbolicUtils.jl copied to clipboard

Do an audit for which functions should be marked with @nospecialize

Open MasonProtter opened this issue 5 years ago • 0 comments

I suspect that most functions which are called in the process of simplify should be marked with @nospecialize, otherwise the compiler is going to be doing a ton of unnecessary work generating specialized methods every time it looks into the arguments of a term since they're not parameterized on the type of arguments or operation.

It'll take a lot of work, but it'd be worthwhile to just go through and test out which functions need this by doing a lot of benchmarking.

MasonProtter avatar May 02 '20 01:05 MasonProtter