janko.marohnic / gmail.com wrote:
> https://bugs.ruby-lang.org/issues/14426

> I also thought that splitting writes on newlines was adding
> unnecessary memory allocations, so I removed that.

Agreed.

> I tested uploading a 5MB file using HTTP.rb, and memory
> allocation went from 7.7 MB to 0.2 MB with this change.

Nice!   This patch looks good to me, thanks.

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>