google / google/gopacket

Importing gopacket and doing nothing uses 8.2MB of RES mem

Open
#692 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
6.8k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Subject says it all. Is this by design? Makes the use of gopacket difficult in resource constrained systems.

To reproduce:

import these packages

"github.com/google/gopacket"
_ "github.com/google/gopacket/afpacket"
_ "github.com/google/gopacket/layers"
_ "github.com/google/gopacket/pcap"

Just sleep in main. Then run htop and check RES memory.

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.