From 5d7c2316045e416d0152dd5cd3a941be3843c67c Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sun, 4 Nov 2018 15:38:59 +0000 Subject: rct: add a zeroCommit cache for common pre-rct case This is called for every pre-rct output at blockchain sync time, and a lot of them wil hit the cache, saving a scalarmult each. --- tests/performance_tests/main.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/performance_tests/main.cpp') diff --git a/tests/performance_tests/main.cpp b/tests/performance_tests/main.cpp index 87a1573c2..3c71cb99f 100644 --- a/tests/performance_tests/main.cpp +++ b/tests/performance_tests/main.cpp @@ -256,6 +256,8 @@ int main(int argc, char** argv) TEST_PERFORMANCE1(filter, p, test_crypto_ops, op_addKeys3); TEST_PERFORMANCE1(filter, p, test_crypto_ops, op_addKeys3_2); TEST_PERFORMANCE1(filter, p, test_crypto_ops, op_isInMainSubgroup); + TEST_PERFORMANCE1(filter, p, test_crypto_ops, op_zeroCommitUncached); + TEST_PERFORMANCE1(filter, p, test_crypto_ops, op_zeroCommitCached); TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_bos_coster, 2); TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_bos_coster, 4); -- cgit v1.2.3