Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

map: do not allocate on lookup when key doesn't exist #1519

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

brycekahle
Copy link
Contributor

Fixes #1516

@brycekahle brycekahle requested a review from a team as a code owner July 18, 2024 22:48
map_test.go Outdated Show resolved Hide resolved
syscalls.go Outdated Show resolved Hide resolved
Fixes cilium#1516

Signed-off-by: Bryce Kahle <bryce.kahle@datadoghq.com>
@brycekahle brycekahle force-pushed the bryce.kahle/zero-alloc-lookup-enoent branch from 0213343 to 22b068f Compare July 22, 2024 20:56
@lmb lmb changed the title remove allocs for map lookup ENOENT error map: do not allocate when key doesn't exist Jul 23, 2024
@lmb lmb changed the title map: do not allocate when key doesn't exist map: do not allocate on lookup when key doesn't exist Jul 23, 2024
@lmb lmb merged commit 63c6cf8 into cilium:main Jul 23, 2024
17 checks passed
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.

map Lookup allocates when key does not exist
3 participants