https://issues.apache.org/SpamAssassin/show_bug.cgi?id=5931
Summary: add_cidr chokes on large amount of trusted_networks
Product: Spamassassin
Version: SVN Trunk (Latest Devel Version)
Platform: Other
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P4
Component: Libraries
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
I'm currently converting dnswl-data to trusted_networks entries (~10000), which
works fine and provides benefits from less queries and ALL_TRUSTED
shortcircuits.
It was necessary to remove this from add_cidr():
#next if ($self->is_net_declared($ip4, $ip6, $exclude, 0));
The continuous looping iterates into millions of checks, eventually halting to
a stop.
I don't really care if there are duplicates, since it doesn't affect anything.
Probably only if you use exclusions. In that case the code should use two
separate arrays for includes and excludes, instead of one unsorted like now.
Would you maybe accept patch that added option to disable that duplicate check?
Or do you have any ideas how to speed things up?
--
Configure bugmail:
https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.