Commit d7c96cf2 authored by Yosef Dinerstein's avatar Yosef Dinerstein Committed by Ben Noordhuis
Browse files

tls: reduce memory overhead, reuse buffer

Instead of allocating a new 64KB buffer each time when checking if there is
something to transform, continue to use the same buffer. Once the buffer is
exhausted, allocate a new buffer. This solves the problem of huge allocations
when small fragments of data are processed, but will also continue to work
well with big pieces of data.
parent daa6b95b
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment