{"push_id":2558303290,"size":4,"distinct_size":4,"ref":"refs/heads/master","head":"399879f8b725548368d1d80b4b4b0753de7a7f28","before":"ceefd42c1e3c8550b58004783bfd9e075d663111","commits":[{"sha":"d0083dbf7fa5bc706b723bbae28db6b4395c2630","author":{"name":"Noah Zentzis","email":"2c3d524d4280328341b7b64ad4fd28ae72b8da8a@generalproblem.net"},"message":"Recycle space when reserving from Vec-backed Bytes\n\nBytesMut::reserve, when called on a BytesMut instance which is backed by\na non-shared Vec<u8>, would previously just delegate to Vec::reserve\nregardless of the current location in the buffer. If the Bytes is\nactually the trailing component of a larger Vec, then the unused space\nwon't be recycled. In applications which continually move the pointer\nforward to consume data as it comes in, this can cause the underlying\nbuffer to get extremely large.\n\nThis commit checks whether there's extra space at the start of the\nbacking Vec in this case, and reuses the unused space if possible\ninstead of allocating.","distinct":true,"url":"https://api.github.com/repos/nzentzis/bytes/commits/d0083dbf7fa5bc706b723bbae28db6b4395c2630"},{"sha":"d4efb81e76899ff037adb10e398609ca4cb737d0","author":{"name":"Noah Zentzis","email":"2c3d524d4280328341b7b64ad4fd28ae72b8da8a@generalproblem.net"},"message":"Avoid excessive copying when reusing Vec space\n\nOnly reuse space in a Vec-backed Bytes when doing so would gain back\nmore than half of the current capacity. This avoids excessive copy\noperations when a large buffer is almost (but not completely) full.","distinct":true,"url":"https://api.github.com/repos/nzentzis/bytes/commits/d4efb81e76899ff037adb10e398609ca4cb737d0"},{"sha":"e9729ec729c88092cd51518cf12c42da43e66a3d","author":{"name":"Noah Zentzis","email":"2c3d524d4280328341b7b64ad4fd28ae72b8da8a@generalproblem.net"},"message":"Add unit tests for recycling space in Bytes","distinct":true,"url":"https://api.github.com/repos/nzentzis/bytes/commits/e9729ec729c88092cd51518cf12c42da43e66a3d"},{"sha":"399879f8b725548368d1d80b4b4b0753de7a7f28","author":{"name":"Noah Zentzis","email":"2c3d524d4280328341b7b64ad4fd28ae72b8da8a@generalproblem.net"},"message":"Merge branch 'master' of github.com:nzentzis/bytes","distinct":true,"url":"https://api.github.com/repos/nzentzis/bytes/commits/399879f8b725548368d1d80b4b4b0753de7a7f28"}]}
{"actor":{"display_login":"nzentzis"}}