-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Feat/performance improvement #173
base: master
Are you sure you want to change the base?
Feat/performance improvement #173
Conversation
Thanks for the PR! Are you able to share the benchmarks you used? I would love to run them locally and validate the results. |
Sure, here is the link: https://github.com/Maksimka101/equatable_benchmark |
Hello Any news?🙂 Do I need to fix something or provide more information? |
Apologies for the delay! I was slow to respond due to the holidays but I should have time to review this in the next day or two. Thanks again! |
Thanks. No need to hurry. I forgot that normal people relax on holidays🙂. Happy new year |
Hello Can we merge this? |
Just saw this. besides that I think it would definitely great to get this merged, why not borrow the optimization of |
Will review this later today apologies that it fell through the cracks. Looks like ci was failing but just re-triggered ci to see the logs. |
Looks like some tests are missing. I’ll take a look at the benchmarks and will see if I can get this merged later today. Apologies for the delay! |
@Maksimka101 I've added benchmarks and run them against the implementation on master and am seeing the following results: branch: master
branch: feat/performance-improvement
MacBook Pro (M1 Pro, 16GB RAM) I'm not able to reproduce the significant performance increase you describe. Maybe Let me know if you're still able to reproduce the ~20% performance improvement, thanks! |
Because the classes should be immutable (e.g. all fields should be final and have a const constructor). Classes that use |
Status
READY
Breaking Changes
NO
Description
I've noticed that the performance of comparing objects with collections can be significantly enhanced. These optimizations in my application led to a considerable increase in FPS, approximately by 3 times. Additionally, I've conducted tests to compare the performance between the old and new approaches
Todos
Impact to Remaining Code Base
This PR will affect: