kpeeters / cadabra2

A field-theory motivated approach to computer algebra.
https://cadabra.science/
GNU General Public License v3.0
215 stars 37 forks source link

Searching properties does needless replacement map building #165

Open kpeeters opened 4 years ago

kpeeters commented 4 years ago

The code in pattern::match runs Ex_comparator::equal_subtree. This is a generic routine which builds a replacement map even when (in cases such as this) a replacement map is not required. Add a fast path to avoid this (and make debugging output of Compare.cc easier to read because it will then not spit out anything anymore when doing a get inside Compare.cc).