From f0bc684ccdc7bc66010254c9136f960467e6a3db Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Wed, 29 Aug 2018 09:42:23 +0000 Subject: mnemonics: fix outrageous compile time with CLANG in release from several minutes to 10-15 seconds --- src/mnemonics/english.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/mnemonics/english.h') diff --git a/src/mnemonics/english.h b/src/mnemonics/english.h index ee087674d..d5c5594ef 100644 --- a/src/mnemonics/english.h +++ b/src/mnemonics/english.h @@ -49,7 +49,10 @@ namespace Language class English: public Base { public: - English(): Base("English", "English", std::vector({ + English(): Base("English", "English", {}, 3) + { + static constexpr const char * const words[NWORDS] = + { "abbey", "abducts", "ability", @@ -1676,8 +1679,8 @@ namespace Language "zombie", "zones", "zoom" - }), 3) - { + }; + set_words(words); populate_maps(); } }; -- cgit v1.2.3