ruby/ext/openssl/lib
Jaymz Julian d39993a4ce [ruby/openssl] Fix performance regression in do_write(s)
This causes significant performance issues when using large (>10meg) writes

Fix by adjusting the buffer write function to clear the buffer once, rather than
piece by piece, avoiding a case where a large write (in our case, around
70mbytes) will consume 100% of CPU. This takes a webrick GET request via SSL
from around 200kbyts/sec and consuming 100% of a core, to line speed on gigabit
ethernet and 6% cpu utlization.

d4389b425d
2024-05-02 16:24:36 +09:00
..
openssl [ruby/openssl] Fix performance regression in do_write(s) 2024-05-02 16:24:36 +09:00
openssl.rb [ruby/openssl] config: revert to C implementation of OpenSSL::Config 2021-03-16 19:16:10 +09:00