Page MenuHomeFreeBSD

libalias: Switch to efficient data structure for incoming traffic
ClosedPublic

Authored by donner on May 28 2021, 9:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 24, 9:57 PM
Unknown Object (File)
Thu, Oct 24, 8:52 PM
Unknown Object (File)
Oct 3 2024, 7:13 AM
Unknown Object (File)
Oct 1 2024, 12:15 PM
Unknown Object (File)
Oct 1 2024, 10:04 AM
Unknown Object (File)
Sep 28 2024, 4:11 PM
Unknown Object (File)
Sep 27 2024, 9:30 PM
Unknown Object (File)
Sep 24 2024, 3:58 AM
Subscribers

Details

Summary

Current data structure is using a hash of unordered lists. Those
unordered lists are quite efficient, because the least recently
inserted entries are most likely to used again. In order to avoid
long search times in other cases, the lists are hashed in to many
buckets. Unfortunatly a search for a miss needs an exhaustive
inspection and a careful definition of the hash.

Splay trees offer a similar feature (almost O(1) for access of the
least recently used entries), and amortized O(ln(n)) for almost all
other cases. Get rid of the hash.

Depends on D30516

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 39551
Build 36440: arc lint + arc unit

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Jun 19 2021, 8:29 PM
This revision was automatically updated to reflect the committed changes.