From c785399884650fd0a1a4ffc3008fbb665e47a9d3 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Wed, 4 Sep 2024 09:57:39 +0500 Subject: In MSVC, non-static constexpr objects are initialized at run-time Yes, it's a memcpy from a compile-time blob, but still they are stack-allocated, so cycles are spent on their initialization. Change-Id: I152369887a7769087e5dfe139ea82498533835b5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172850 Reviewed-by: Mike Kaganski Tested-by: Jenkins --- connectivity/source/drivers/firebird/PreparedStatement.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connectivity/source/drivers/firebird/PreparedStatement.cxx b/connectivity/source/drivers/firebird/PreparedStatement.cxx index 9fb70c305adb..28746c4f84cb 100644 --- a/connectivity/source/drivers/firebird/PreparedStatement.cxx +++ b/connectivity/source/drivers/firebird/PreparedStatement.cxx @@ -358,7 +358,7 @@ namespace { sal_Int64 toPowOf10AndRound(double n, int powOf10) { - constexpr sal_Int64 powers[] = { + static constexpr sal_Int64 powers[] = { 1, 10, 100, -- cgit