-
Notifications
You must be signed in to change notification settings - Fork 678
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: don't unmarshal unnecessary items on batch lookup #1080
Comments
err := sysenc.Desempacotamento(keysOut, keyBuf, count) I thought about providing the actual count of items that need to be unpacked, storing it in the variable count, therefore, the Desempacotamento function needs to be able to accept an item count. If this is not supported, one option would be to adjust the function so that it receives this parameter |
It does seem like Map.batchLookup() always tries to unmarshal the whole keyBuf and valueBuf regardless of the Count received from the batch syscall.
ebpf/map.go
Lines 1076 to 1083 in c739d15
It would be nice if we instead only decoded count keys and values.
See #1078 (comment).
The text was updated successfully, but these errors were encountered: