Skip to content

node_updated signal sends changed_keys list#310

Merged
JoOkuma merged 2 commits into
royerlab:mainfrom
TeunHuijben:fix-spatial-filter-changed-keys
Jul 1, 2026
Merged

node_updated signal sends changed_keys list#310
JoOkuma merged 2 commits into
royerlab:mainfrom
TeunHuijben:fix-spatial-filter-changed-keys

Conversation

@TeunHuijben

Copy link
Copy Markdown
Contributor

Most listeners of the node_updated signal only need to act on changes to certain keys. (GraphArrayView, SpatialFilter, BBoxSpatialFilter)

Currently, the node_updated signal returns the pull dataframe containing the old and new attributes. Then it is up to the listeners to check if they really changed.

This PR adds a changed_keys list to the node_updated signal, to make it easier and faster for listeners to make this decision. The just merged benchmark should (hopefully) show the improvement.

@TeunHuijben

Copy link
Copy Markdown
Contributor Author

Speedup proof:

Screenshot 2026-06-30 at 16 19 13

@JoOkuma JoOkuma left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TeunHuijben, awesome PR.
It's cool to see the speedup on the benchmarks.

@JoOkuma JoOkuma merged commit 7906086 into royerlab:main Jul 1, 2026
7 checks passed
@TeunHuijben TeunHuijben deleted the fix-spatial-filter-changed-keys branch July 1, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants