microsoft / microsoft/retina

Optimize packetparserPacket struct fields to minimize padding

Open
#1,121 0 comments 0 reactions 1 assignee Claimed by @SRodi View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.