[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] valyuta/002 cfe336c 11/14: Make it faster

From: Greg Chicares
Subject: [lmi-commits] [lmi] valyuta/002 cfe336c 11/14: Make it faster
Date: Thu, 17 Sep 2020 16:27:16 -0400 (EDT)

branch: valyuta/002
commit cfe336c679238c7ca48079b8aa775b1ae548fba1
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Make it faster
    Short-circuiting currency::round() yields some improvement:
    $wine ./lmi_cli_shared.exe --accept --data_path=/opt/lmi/data --selftest
    Test speed:
      naic, no solve      : 9.810e-02 s mean;     96952 us least of  11 runs
      naic, specamt solve : 1.722e-01 s mean;    171329 us least of   6 runs
      naic, ee prem solve : 1.571e-01 s mean;    156184 us least of   7 runs
      finra, no solve     : 2.748e-02 s mean;     25921 us least of  37 runs
      finra, specamt solve: 9.320e-02 s mean;     91937 us least of  11 runs
      finra, ee prem solve: 8.576e-02 s mean;     84584 us least of  12 runs
 currency.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/currency.hpp b/currency.hpp
index ae562b2..30428da 100644
--- a/currency.hpp
+++ b/currency.hpp
@@ -42,7 +42,7 @@
 // Similar restrictions apply to these macros, but they'd be tedious
 // to write. Use them only with floating-point dollars.
-//#define MAKE_IT_FASTER

reply via email to

[Prev in Thread] Current Thread [Next in Thread]