-
Notifications
You must be signed in to change notification settings - Fork 40
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
Rajan/preamble fb #24
Rajan/preamble fb #24
Conversation
rajan-chari
commented
Nov 26, 2018
- Flatbuffer
- Object pooling and memory management for FB
- Preamble changes
- Manually merged master
…inforcement_learning into rajan/preamble_fb
…inforcement_learning into rajan/preamble_fb
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.
…_sender and i_message_sender 2) linux_build
using offset_vector_t = typename std::vector<flatbuffers::Offset<fb_event_t>>; | ||
using batch_builder_t = RankingEventBatchBuilder; | ||
|
||
static size_t size_estimate(const ranking_event& evt) { |
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.
This size estimation is required for controlling size of queue in memory (before serialization), and there is nothing fb-specific in implementation as well. So, probably it should not be part of serializer? We have static assert that any event have to be inherited from base event class, so probably it is cleaner to add size() method to that interface? In this case we also can get rid of size argument for event_queue::push.