HomeFreeBSD

Avoid 256 integer divisions per rc4_init() call. Replace it with using
rS186179Unpublished

Unpublished Commit · Learn More

No further details are available.

Description

Avoid 256 integer divisions per rc4_init() call. Replace it with using
separate index variable.

It gives more then double rc4_init() performance increase on tested i386 P4.
It also gives about 15% speedup to PPTP VPN with stateless MPPE encryption
(by ng_mppc) which calls rc4_init() for every packet.

Details

Provenance
mavAuthored on
Parents
rS186178: ipfw doesn't use the radix node head lock to protect the radix tree - remove…
Branches
Unknown
Tags
Unknown

Event Timeline