Skip to content

Conversation

@jackgerrits
Copy link
Member

No description provided.

if (buf_read(c, sizeof(T)) < sizeof(T))
{
if (debug_name != nullptr)
{ THROW("Failed to read cache value: " << debug_name << ", with size: " << sizeof(T)); }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably out of scope for this change, but does it make sense to have a mode where an error in reading from the cache would cause the learning to switch back to reading from non-cache? Or is the coordination hard enough to make it not worth the time?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the current landscape the coordination to achieve that is hard enough to not make it worth it. I can see it being a nice thing to have in future though.

@jackgerrits jackgerrits merged commit aed83a5 into VowpalWabbit:master Jun 10, 2021
@jackgerrits jackgerrits deleted the jagerrit/cache_templated_read branch June 10, 2021 13:25
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.

3 participants