Skip Menu |
 

This queue is for tickets about the Net-DNS CPAN distribution.

Report information
The Basics
Id: 24525
Status: resolved
Priority: 0/
Queue: Net-DNS

People
Owner: Nobody in particular
Requestors: despair [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 0.59
Fixed in: (no value)



Subject: Patch for Net::DNS to reduce memory usage
Download (untitled) / with headers
text/plain 693b
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
Download Base.pm
text/x-perl 38.4k

Message body is not shown because it is too large.

Patch lives on the trunk as off 625


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.