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

Create class for each node type #250

Merged

Conversation

ivan-tymoshenko
Copy link
Collaborator

@ivan-tymoshenko ivan-tymoshenko commented Apr 13, 2022

I refactored the Node entity:

  • Divided the Node into the three different classes: StaticNode, ParametricNode, WildcardNode; each of these classes has a different set of properties and methods
  • Moved everything related to handlers and matching constraints to the separate entity: HandlerStorage

@ivan-tymoshenko ivan-tymoshenko force-pushed the create-class-for-each-node-type branch 3 times, most recently from 203bcf1 to 7a4dbe5 Compare April 15, 2022 16:35
@ivan-tymoshenko
Copy link
Collaborator Author

Main branch:

main

Current branch:

current

@ivan-tymoshenko ivan-tymoshenko marked this pull request as ready for review April 15, 2022 16:52
@ivan-tymoshenko ivan-tymoshenko force-pushed the create-class-for-each-node-type branch 2 times, most recently from 3120a27 to 5665a92 Compare April 15, 2022 17:46
@mcollina
Copy link
Collaborator

Is the difference in the last benchmark in the script confirmed? Are we losing some perf?

@ivan-tymoshenko
Copy link
Collaborator Author

There is no reason for the last benchmark to be slower. I ran it again in the current branch.

Снимок экрана 2022-04-16 в 13 10 10

Benchmarks can have a significant margin of error between two runs.

@mcollina mcollina merged commit 1f45298 into delvedor:main Apr 16, 2022
@ivan-tymoshenko ivan-tymoshenko deleted the create-class-for-each-node-type branch April 17, 2022 14:14
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