Page MenuHomePhabricator

Use PhutilRope for Channel write buffers and make write buffer details public
ClosedPublic

Authored by epriestley on Dec 16 2013, 6:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jul 2, 11:33 AM
Unknown Object (File)
Sat, Jun 28, 10:47 PM
Unknown Object (File)
Sat, Jun 28, 6:04 PM
Unknown Object (File)
Sat, Jun 28, 4:38 PM
Unknown Object (File)
Fri, Jun 27, 4:32 PM
Unknown Object (File)
May 10 2025, 12:52 AM
Unknown Object (File)
Apr 20 2025, 5:15 PM
Unknown Object (File)
Apr 19 2025, 9:50 PM
Subscribers

Details

Summary

Ref T4241. Two changes:

  • Use PhutilRope instead of plain string for the Channel write buffers. This makes it more consistent, and should improve performance in some cases.
  • Expose information about buffer sizes as public. We need this in a future diff to be able to throttle reads when we're blocked on writes, since we have to be able to test if a write channel is blocked or not.
Test Plan

Ran arc unit. Ran git operations over SSH.

Diff Detail

Branch
readbuffer2
Lint
Lint Passed
Unit
Tests Passed