awit-perl-toolkit issueshttps://gitlab.linux.community/awit-frameworks/awit-perl-toolkit/-/issues2020-05-08T16:42:22Zhttps://gitlab.linux.community/awit-frameworks/awit-perl-toolkit/-/issues/1awitpt::netip Math::BigInt performance issue.2020-05-08T16:42:22ZMarco Dalla Stellaawitpt::netip Math::BigInt performance issue.Hi,
we currently run policyd along with a Zimbra server and we experienced some performance problems.
So we made some profiling with Devel::NYTProf and found that awitpt::netip::is_within was using a huge part of the system resources...Hi,
we currently run policyd along with a Zimbra server and we experienced some performance problems.
So we made some profiling with Devel::NYTProf and found that awitpt::netip::is_within was using a huge part of the system resources.
The introduction of BigInt to manage (it's just my guess) IPv6 addresses is the cause.
So I forked your repository and tried to fix this issue using Net::Subnet, which it uses only native Perl function to achieve the same result.
The commit with my changes is [this](https://gitlab.devlabs.linuxassist.net/mdallastella/awit-perl-toolkit/commit/b814da9291fd5b40d75678afbf6c2cb8c0fb510e).
What do you think?
Thanks.