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
We can have the table maintain a sorted copy of the keys for fast get-next calls.
classMIBTable(dict):
# ...def__setitem__(self, key, value):
super().__setitem__(key, value)
self._sorted_keys=sorted(self.keys())
@propertydefsorted_keys():
# make a copy -- saves OID searches "in-flight" if the table is updatedreturnlist(self._sorted_keys)
The text was updated successfully, but these errors were encountered:
Ideally (as-implemented):
O(1)
for getsO(n)
for get-nextCurrently:
O(1)
for getO(n)
for gets in dynamic subtrees Implement RFC4363 dot1qTpFdbTable Q-BRIDGE-MIB #3O(n log n)
for get-next (because ofsorted
usage)We can have the table maintain a sorted copy of the keys for fast get-next calls.
The text was updated successfully, but these errors were encountered: