diff options
author | Misaki Shioi <[email protected]> | 2024-12-14 15:51:19 +0900 |
---|---|---|
committer | GitHub <[email protected]> | 2024-12-14 15:51:19 +0900 |
commit | 9f924e2f13992241c447190a9eb139bf46dcb8d9 (patch) | |
tree | ac6acd2fa5b2fe57d895266a762999343c3ae160 /doc/rdoc/markup_reference.rb | |
parent | 77016a7b4341d861b83e222c18333204b63f480b (diff) |
Improve APIs for Globally Enabling/Disabling fast_fallback in Socket (#12257)
This change includes the following updates:
- Added an environment variable `RUBY_TCP_NO_FAST_FALLBACK` to control enabling/disabling fast_fallback
- Updated documentation and man pages
- Revised the implementation of Socket.tcp_fast_fallback= and Socket.tcp_fast_fallback, which previously performed dynamic name resolution of constants and variables. As a result, the following performance improvements were achieved:
(Case of 1000 executions of `TCPSocket.new` to the local host)
Rehearsal -----------------------------------------
before 0.031462 0.147946 0.179408 ( 0.249279)
after 0.031164 0.146839 0.178003 ( 0.346935)
-------------------------------- total: 0.178003sec
user system total real
before 0.027584 0.138712 0.166296 ( 0.233356)
after 0.025953 0.127608 0.153561 ( 0.237971)
Notes
Notes:
Merged-By: shioimm <[email protected]>
Diffstat (limited to 'doc/rdoc/markup_reference.rb')
0 files changed, 0 insertions, 0 deletions