Skip to content

Add read buffer to SnoopFileReader.#2086

Merged
Dimi1010 merged 1 commit intoseladb:devfrom
Dimi1010:feature/snoop-read-buffer
Mar 25, 2026
Merged

Add read buffer to SnoopFileReader.#2086
Dimi1010 merged 1 commit intoseladb:devfrom
Dimi1010:feature/snoop-read-buffer

Conversation

@Dimi1010
Copy link
Copy Markdown
Collaborator

Mirrors the read buffer implementation of PcapFileReaderDevice in #2072 to SnoopFileReaderDevice.

This defers the allocation of a packet buffer until after the packet has been confirmed to match all filters and needs to be extracted. It also precisely sizes the needed buffer, reducing wasted space.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.00%. Comparing base (d1263a2) to head (bb4ea2e).
⚠️ Report is 1 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #2086      +/-   ##
==========================================
- Coverage   84.01%   84.00%   -0.01%     
==========================================
  Files         316      316              
  Lines       56963    56958       -5     
  Branches    12020    12041      +21     
==========================================
- Hits        47856    47849       -7     
- Misses       8315     8317       +2     
  Partials      792      792              
Flag Coverage Δ
alpine320 76.74% <100.00%> (+<0.01%) ⬆️
fedora42 76.29% <100.00%> (-0.02%) ⬇️
macos-14 82.12% <100.00%> (+<0.01%) ⬆️
macos-15 82.11% <100.00%> (+<0.01%) ⬆️
mingw32 70.71% <100.00%> (-0.03%) ⬇️
mingw64 70.67% <100.00%> (+0.05%) ⬆️
npcap ?
rhel94 76.12% <100.00%> (+<0.01%) ⬆️
ubuntu2004 59.84% <100.00%> (+0.03%) ⬆️
ubuntu2004-zstd 59.91% <100.00%> (+<0.01%) ⬆️
ubuntu2204 76.12% <100.00%> (-0.01%) ⬇️
ubuntu2204-icpx 59.07% <66.66%> (-0.04%) ⬇️
ubuntu2404 76.42% <100.00%> (+<0.01%) ⬆️
ubuntu2404-arm64 76.44% <100.00%> (-0.01%) ⬇️
unittest 84.00% <100.00%> (-0.01%) ⬇️
windows-2022 85.59% <100.00%> (+0.11%) ⬆️
windows-2025 85.62% <100.00%> (+0.12%) ⬆️
winpcap 85.62% <100.00%> (-0.09%) ⬇️
xdp 52.78% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Dimi1010 Dimi1010 marked this pull request as ready for review March 19, 2026 11:21
@Dimi1010 Dimi1010 requested a review from seladb as a code owner March 19, 2026 11:21
@Dimi1010 Dimi1010 merged commit 58cfada into seladb:dev Mar 25, 2026
77 of 79 checks passed
@Dimi1010 Dimi1010 deleted the feature/snoop-read-buffer branch March 25, 2026 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants