[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
+#define MAKE_IT_FASTER
//#define MAKE_IT_EVEN_FASTER
#if !defined CURRENCY_HAS_INTEGER_DATATYPE
- [lmi-commits] [lmi] valyuta/002 updated (9433c8e -> 3f71218), Greg Chicares, 2020/09/17
- [lmi-commits] [lmi] valyuta/002 53de040 01/14: Add an extra argument to currency(data_type), Greg Chicares, 2020/09/17
- [lmi-commits] [lmi] valyuta/002 c5e0b01 04/14: Make currency class mandatory, Greg Chicares, 2020/09/17
- [lmi-commits] [lmi] valyuta/002 c80d1eb 09/14: Add two experimental options, Greg Chicares, 2020/09/17
- [lmi-commits] [lmi] valyuta/002 e4cb0f1 10/14: Make it float, Greg Chicares, 2020/09/17
- [lmi-commits] [lmi] valyuta/002 cfe336c 11/14: Make it faster,
Greg Chicares <=
- [lmi-commits] [lmi] valyuta/002 4a6bc6c 02/14: Resolve confusion, Greg Chicares, 2020/09/17
- [lmi-commits] [lmi] valyuta/002 0d47d8d 03/14: Refine an assertion, Greg Chicares, 2020/09/17
- [lmi-commits] [lmi] valyuta/002 27c198e 05/14: fixup, Greg Chicares, 2020/09/17
- [lmi-commits] [lmi] valyuta/002 3d1ff11 06/14: Remove useless casts, Greg Chicares, 2020/09/17
- [lmi-commits] [lmi] valyuta/002 594bd68 07/14: Allow floating currency::data_type, Greg Chicares, 2020/09/17
- [lmi-commits] [lmi] valyuta/002 1fbef51 13/14: Make it even faster, Greg Chicares, 2020/09/17
- [lmi-commits] [lmi] valyuta/002 420fac7 08/14: Allow currency to be dollars rather than cents, Greg Chicares, 2020/09/17
- [lmi-commits] [lmi] valyuta/002 3f71218 14/14: Trivially avoid spurious regression errors, Greg Chicares, 2020/09/17
- [lmi-commits] [lmi] valyuta/002 e262406 12/14: Make it more faster, Greg Chicares, 2020/09/17