Conversation
Kerollmops
left a comment
There was a problem hiding this comment.
Hey @forsaken628 👋
Thank you for the proposal. However, I doubt that there is a performance gain. Could you please set up some benchmarks and run them?
Have a nice day 🌵
|
There are performance improvements for heavy computation and some regressions for light computation |
Kerollmops
left a comment
There was a problem hiding this comment.
Hey @forsaken628 👋
Thanks for the proposal. However, I am wondering whether the approach you took is what I expected. I see that you introduced new internal types to read the containers and skip the unnecessary ones, and that you modified the code in the intersection part to use your new visitor structs.
However, I would prefer that you don't modify the existing code for now and introduce a new union_with_serialized_unchecked method akin to intersection_with_serialized_unchecked first, please.
Have a great day 🌵
This PR is related to #263 , #281 and the computation process was refactored using the Visitor pattern to facilitate future extensions