You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BTreeMap provides an Entry API to prevent duplicate lookups for successive operations on the same key. FlowTable wraps a private BTreeMap to provide fixed capacity constraints, meaning we cannot use this API directly without some care to make sure that an Entry::Vacant cannot be used to insert into a full table.
An entry method on FlowTable which handles these semantics would be useful. There are a handful of places which would benefit from this for code cleanup, e.g. TCP flow state management.
The text was updated successfully, but these errors were encountered:
BTreeMap
provides anEntry
API to prevent duplicate lookups for successive operations on the same key.FlowTable
wraps a privateBTreeMap
to provide fixed capacity constraints, meaning we cannot use this API directly without some care to make sure that anEntry::Vacant
cannot be used to insert into a full table.An
entry
method onFlowTable
which handles these semantics would be useful. There are a handful of places which would benefit from this for code cleanup, e.g. TCP flow state management.The text was updated successfully, but these errors were encountered: