1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:48:14 +00:00
serenity/Libraries/LibCrypto/BigInt
Andreas Kling e6922c0d40 LibCrypto: Manage vector sizing manually in performance-critical places
Use Vector::resize_and_keep_capacity() to resize BigInt vectors to just
the right size without risking deallocation. Then do direct indexed
accesses to the underlying words (or use memset/memcpy.)

This gives a ~40% speed-up on the RSA tests in "test-crypto -t pk" :^)
2020-05-03 19:14:50 +02:00
..
UnsignedBigInteger.cpp LibCrypto: Manage vector sizing manually in performance-critical places 2020-05-03 19:14:50 +02:00
UnsignedBigInteger.h LibCrypto: Added BigInteger 'division by u16' operator 2020-05-03 14:31:26 +02:00