
12 Feb
2023
12 Feb
'23
1:26 a.m.
"mame (Yusuke Endoh) via ruby-core" <ruby-core@ml.ruby-lang.org> wrote:
Feature #19430: Contribution wanted: DNS lookup by c-ares library https://bugs.ruby-lang.org/issues/19430
### Alternative approaches
I prefer to avoid overhead from using threads for DNS lookup, so I dislike getaddrinfo_a || (getaddrinfo + pthread), too.
It would be ideal if we could try and evaluate both approaches. But my current impression is that using c-ares is the quickest and best compromise.
What about resolv.rb? I don't believe CPU/memory use in DNS lookup is a bottleneck for most users (network latency is); and prefer motivating improvements in Ruby VM + socket ext instead of linking against another C library.