Page MenuHomeFreeBSD

libfetch: Reduce copying
ClosedPublic

Authored by des on Jul 8 2026, 5:35 PM.
Tags
None
Referenced Files
F170701830: D58113.id181884.diff
Sun, Sep 6, 2:41 AM
F170698729: D58113.id181552.diff
Sun, Sep 6, 2:18 AM
F170665591: D58113.id181700.diff
Sat, Sep 5, 10:03 PM
F170610822: D58113.id181552.diff
Sat, Sep 5, 3:29 PM
F170597905: D58113.id.diff
Sat, Sep 5, 2:08 PM
F170567275: D58113.id181884.diff
Sat, Sep 5, 10:56 AM
Unknown Object (File)
Fri, Sep 4, 4:28 PM
Unknown Object (File)
Fri, Sep 4, 2:35 PM
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 74705
Build 71588: arc lint + arc unit

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.