cadabra2 icon indicating copy to clipboard operation
cadabra2 copied to clipboard

Searching properties does needless replacement map building

Open kpeeters opened this issue 6 years ago • 0 comments

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).

kpeeters avatar Sep 20 '19 10:09 kpeeters