zxcalc / zxlive

A graphical tool for the ZX calculus
Apache License 2.0
45 stars 15 forks source link

create custom selection change signal such that rules are updated only once upon selection #272

Closed RazinShaikh closed 1 week ago

RazinShaikh commented 1 week ago

This PR makes the matching and updating the sidebar significantly faster. Previously, if you select n vertices, then it will call the matcher and update the sidebar n times, each time with one more vertex selected. Now we only call it once by creating a custom selection change signal.