From 455bbd7e91cbbf92c8bc7b3db1fef0e7015f2bb3 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Sat, 28 Sep 2019 06:41:49 -0400 Subject: OCB optimizations Mostly avoiding/caching dynamic allocations. Also in speed, increment the IV from the low end which demonstrates OCB's enhanced handling of that case. --- src/cli/speed.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cli') diff --git a/src/cli/speed.cpp b/src/cli/speed.cpp index d5a23f08c..090b0abb1 100644 --- a/src/cli/speed.cpp +++ b/src/cli/speed.cpp @@ -1031,7 +1031,7 @@ class Speed final : public Command if(iv.size() > 0) { - iv[0] += 1; + iv[iv.size()-1] += 1; } } } -- cgit v1.2.3