Home GnuPG

Optimize _gcry_burn_stack for 32-bit and 64-bit architectures
ec2f8de409a9Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Optimize _gcry_burn_stack for 32-bit and 64-bit architectures

* src/misc.c (_gcry_burn_stack): Add optimization for 32-bit and 64-bit
architectures.

Busy looping 'tests/benchmark --cipher-repetitions 10 cipher blowfish' on ARM
Cortex-A8 shows that _gcry_burn_stack takes 21% of CPU time. With this patch,
that number drops to 3.4%.

On AMD64 (Intel i5-4570) CPU usage for _gcry_burn_stack in the same test drops
from 3.5% to 1.1%.

  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Details

Provenance
jukiviliAuthored on Jun 9 2013, 3:37 PM
Parents
rCd94ec5f5f8a5: Add Camellia AES-NI/AVX2 implementation
Branches
Unknown
Tags
Unknown

Event Timeline

Jussi Kivilinna <jussi.kivilinna@iki.fi> committed rCec2f8de409a9: Optimize _gcry_burn_stack for 32-bit and 64-bit architectures (authored by Jussi Kivilinna <jussi.kivilinna@iki.fi>).Jun 9 2013, 3:40 PM