Subject: | Patch for Net::DNS to reduce memory usage |
Hello.
One of the major problems of Net::DNS is that
it consumes too much memory.
For example loaded module Net::DNS::Resolver consumes 4676 Kb
on my machine /x86 PC/ (not including perl interpreter itself).
The problem is that Net::DNS::Resolver depends on Net::IP (2268 Kb)
which depends on heavy module Math::BigInt (1780 Kb).
Net::IP is used at Net::DNS::Resolver::Base module,
but only two functions from Net::IP us used:
ip_is_ipv4 and ip_is_ipv6.
I've patched Net::DNS::Resolver::Base and created my own
lightweight versions of ip_is_ipv4 and ip_is_ipv6
based on original ones.
My patch is attached.
Hope it will improve load speed and reduce memory usage
of Net::DNS::Resolver::*
Subject: | Base.pm |
Message body is not shown because it is too large.