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/spanish.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/mnemonics/spanish.h') diff --git a/src/mnemonics/spanish.h b/src/mnemonics/spanish.h index 51f38fede..4d7a896a6 100644 --- a/src/mnemonics/spanish.h +++ b/src/mnemonics/spanish.h @@ -72,7 +72,10 @@ namespace Language class Spanish: public Base { public: - Spanish(): Base("Español", "Spanish", std::vector({ + Spanish(): Base("Español", "Spanish", {}, 4) + { + static constexpr const char * const words[NWORDS] = + { "ábaco", "abdomen", "abeja", @@ -1699,8 +1702,8 @@ namespace Language "risa", "ritmo", "rito" - }), 4) - { + }; + set_words(words); populate_maps(ALLOW_SHORT_WORDS); } }; -- cgit v1.2.3