{"push_id":2809217382,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"229db7bee95934050605069b6ec7eeb7f502ef76","before":"a3ce2cd1626e10b10c50fcbecc2fc56e4df8e55c","commits":[{"sha":"229db7bee95934050605069b6ec7eeb7f502ef76","author":{"name":"Steven Scott","email":"bd9b6fa6ff953cbee48ce28a3f6c91859e53be7d@example.com"},"message":"WIP: Add write buffer pooling\n\nThis PR proposes an API for write buffer pooling #9. If the API is\napproved, I'll complete the implementation.\n\nAdd UseWriteBufferPool to Dialer and Upgrader to specify that pool\nshould be used.\n\nMaintain map of *sync.Pool internally. The key is the buffer size.\n\nUse larger of hijacked buffer and buffer allocated for connection (if\nany) as buffer for building handshake response. This decreases possible\nallocations when buding the handshake response.\n\nModify bufio reuse test to call Upgrade instead of the internal\nnewConnBRW. Move the test from conn_test.go to server_test.go because\nit's a serer test.\n\nUpdate newConn and newConnBRW:\n\n- Move the bufio \"hacks\" from newConnBRW to separate functions and call\nthese functions directly from Upgrade (the functions are not used in\nDial).\n- Rename newConn to newTestConn and move to conn_test.go. Shorten\nargument list to common use case.\n- Rename newConnBRW to newConn.\n- Add pool code to newConn.","distinct":true,"url":"https://api.github.com/repos/stevenscott89/websocket/commits/229db7bee95934050605069b6ec7eeb7f502ef76"}]}
{"actor":{"display_login":"stevenscott89"}}