All of lore.kernel.org
 help / color / mirror / Atom feed
* Further speedup of iptables when modifying an existing ruleset
@ 2008-07-01 16:48 Thomas Jacob
  2008-07-02 10:27 ` Patrick McHardy
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Jacob @ 2008-07-01 16:48 UTC (permalink / raw)
  To: netfilter-devel


[-- Attachment #1.1: Type: text/plain, Size: 490 bytes --]

Hello list,

Here's a patch to speed up iptcc_find_chain_by_offset 
(O(n)->O(log(n)) by creating a lookup table while
initially translating the kernel blob.

In my test case a second iptables-restore with a file containing
~50k chains with 120k~ rules takes 11s instead of 1m30s (on a VM).
iptables -vnL SOMECHAIN takes 0.5s instead of 1m12s.

Comments and suggestions would be very welcome, as would
be inclusion into the mainline distribution ;-)

    Regards,
	Thomas



[-- Attachment #1.2: 0001-Speed-up-verdict-to-chain_head-mapping-by-using-bina.patch --]
[-- Type: application/mbox, Size: 10036 bytes --]

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-02 10:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-01 16:48 Further speedup of iptables when modifying an existing ruleset Thomas Jacob
2008-07-02 10:27 ` Patrick McHardy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.