Page MenuHomeFreeBSD

libfetch: Reduce copying
ClosedPublic

Authored by des on Jul 8 2026, 5:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 4, 8:24 AM
Unknown Object (File)
Sat, Oct 3, 9:03 PM
Unknown Object (File)
Sat, Oct 3, 1:24 AM
Unknown Object (File)
Sat, Oct 3, 1:19 AM
Unknown Object (File)
Tue, Sep 29, 11:57 AM
Unknown Object (File)
Mon, Sep 28, 11:36 PM
Unknown Object (File)
Mon, Sep 28, 6:25 PM
Unknown Object (File)
Mon, Sep 28, 3:32 AM
Subscribers

Details

Summary

Reduce the amount of copying we do when performing buffered reads.

MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 74628
Build 71511: arc lint + arc unit

Event Timeline

des requested review of this revision.Jul 8 2026, 5:35 PM
lib/libfetch/common.c
1464
lib/libfetch/http.c
152

Is this needed?

lib/libfetch/common.c
1464

I like my version better. But also, you should post this in D57907, where it was added.

lib/libfetch/http.c
152

No, thank you for catching it.

des marked 2 inline comments as done.Jul 10 2026, 2:01 PM
This revision is now accepted and ready to land.Jul 11 2026, 10:25 PM
This revision was automatically updated to reflect the committed changes.