Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace double-dynamic invocation #95

Merged
merged 3 commits into from
Dec 22, 2021
Merged

Replace double-dynamic invocation #95

merged 3 commits into from
Dec 22, 2021

Conversation

sebastianburckhardt
Copy link
Member

Previously, events were applied to tracked objects by using double-dynamic invocation: both the event and the state were a dynamic object.

In this PR, the dynamic invocation is replaced with a statically typed invocation (using the visitor pattern). This requires a bit more code, but gives better safety guarantees and also supposedly improves performance.

@sebastianburckhardt sebastianburckhardt added this to the 0.7.0-beta milestone Dec 21, 2021
@sebastianburckhardt sebastianburckhardt merged commit 195cf34 into dev Dec 22, 2021
@sebastianburckhardt sebastianburckhardt deleted the pr/visitor branch December 22, 2021 18:43
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.

1 participant