Optimize packetparserPacket struct fields to minimize padding
Open
area/ebpf
lang/c
- Dominant language
- Go
- Stars
- 3.2k
- Forks
- 304
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 78
Description
## Issue
Extra padding is present in `packetparserPacket ` struct. This should be optimized.
## Goal
Look into a way to re-arrange the struct so that we can minimize the paddings.
## Suggested Solution
Remove struct fields as some fields could be combined - for example `TrafficDirection`, `Proto` and `IsReply`, which could be merged into the Flags field, or a new field
Contributor guide
Assessment
This issue has not been assessed yet.