Skip to content

feat(common): introduce flatmap#717

Open
egnees wants to merge 1 commit intomainfrom
flatmap
Open

feat(common): introduce flatmap#717
egnees wants to merge 1 commit intomainfrom
flatmap

Conversation

@egnees
Copy link
Copy Markdown
Collaborator

@egnees egnees commented May 4, 2026

Summary

Adds a static, open-addressed hash map for hot-path lookups. The map is built once from a fixed key/value array and is read-only afterwards; this makes it cheaper than ttlmap, which carries locking for the mutable case.

The first consumer will be balancer module, which resolves the real-server index by IP address in the dataplane.

Tests

The basic tests were implemented.

@egnees egnees marked this pull request as ready for review May 4, 2026 13:40
@egnees egnees requested a review from a team as a code owner May 4, 2026 13:40
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.

1 participant