[issue21486] optimize v4 netmask parsing

2014-05-12 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- dependencies: +Allow IPNetwork to take a tuple ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21486 ___

[issue21486] optimize v4 netmask parsing

2014-05-12 Thread Antoine Pitrou
New submission from Antoine Pitrou: Here is a patch to optimize ipv4 netmask parsing by maintaining a cache (there are not many valid ipv4 netmask representations). This should be especially useful with #16531. -- components: Library (Lib) files: v4_netmask.patch keywords: patch