lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] valyuta/002 e262406 12/14: Make it more faster


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

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

    Make it more faster
    
    Because 100.0 * 0.01 * 100.0 * 0.01 * 100.0 * 0.01 * 100.0 * 0.01 is a
    costly way of calculating unity.
    
    wine ./lmi_cli_shared.exe --accept --data_path=/opt/lmi/data --selftest
    Test speed:
      naic, no solve      : 9.414e-02 s mean;     93048 us least of  11 runs
      naic, specamt solve : 1.655e-01 s mean;    164380 us least of   7 runs
      naic, ee prem solve : 1.514e-01 s mean;    150173 us least of   7 runs
      finra, no solve     : 2.570e-02 s mean;     25282 us least of  39 runs
      finra, specamt solve: 8.987e-02 s mean;     88669 us least of  12 runs
      finra, ee prem solve: 8.343e-02 s mean;     82883 us least of  12 runs
---
 currency.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/currency.hpp b/currency.hpp
index 30428da..a7ef89b 100644
--- a/currency.hpp
+++ b/currency.hpp
@@ -32,7 +32,7 @@
 #include <iostream>                     // ostream
 #include <vector>
 
-#define CURRENCY_UNIT_IS_CENTS
+//#define CURRENCY_UNIT_IS_CENTS
 
 //#define CURRENCY_HAS_INTEGER_DATATYPE
 



reply via email to

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