Page MenuHomeFreeBSD

libfetch: Reduce copying
ClosedPublic

Authored by des on Jul 8 2026, 5:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 9, 3:03 PM
Unknown Object (File)
Wed, Oct 7, 6:42 PM
Unknown Object (File)
Wed, Oct 7, 9:48 AM
Unknown Object (File)
Tue, Oct 6, 11:46 PM
Unknown Object (File)
Tue, Oct 6, 9:35 AM
Unknown Object (File)
Mon, Oct 5, 11:28 PM
Unknown Object (File)
Mon, Oct 5, 10:20 PM
Unknown Object (File)
Sun, Oct 4, 8:24 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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

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

Is this needed?

lib/libfetch/common.c
1464–1465

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.