On Fri May 09 12:12:36 2014, zm_mail@icloud.com wrote:
Show quoted text> Hi,
> The following example will spend about 4 minutes, but
> NetAddr::IP::Lite just spend 15 seconds in the same machine. I think
> Net::IP have a big space to optimize it. Thanks!
That's true. Net::IP uses string representation of a bit field of IP address and operates on a string. Poor architectural decission, to be honest.
Rewrite, though, may take too much efford. I'd recommend to use Net::IP::Lite instead.