-
Notifications
You must be signed in to change notification settings - Fork 279
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
Cache redesign #351
Cache redesign #351
Conversation
1f56786
to
df91212
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks! I like the new cache, but I think the ring buffer can be reworked with iterators pair instead of active
in each element.
946b22c
to
5a26e6c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the implementation of ring buffer is interesting, though takes some time to understand.
99504ef
to
07ed14c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to be OK in general, but please refactor names and casts to Google Codestyle.
https://google.github.io/styleguide/cppguide.html#Casting , and no trailing underscores.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Please apply clang-format, fix DCO, and check the comments.
Signed-off-by: iceseer <iceseer@gmail.com>
Description of the Change
Redesign cache with ring buffer. It shows much better performance.
Benefits
performance profit
Possible Drawbacks
Usage Examples or Tests [optional]
Alternate Designs [optional]