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/russian.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/mnemonics/russian.h') diff --git a/src/mnemonics/russian.h b/src/mnemonics/russian.h index d5dd556ef..f3e70ede6 100644 --- a/src/mnemonics/russian.h +++ b/src/mnemonics/russian.h @@ -51,7 +51,10 @@ namespace Language class Russian: public Base { public: - Russian(): Base("русский язык", "Russian", std::vector({ + Russian(): Base("русский язык", "Russian", {}, 4) + { + static constexpr const char * const words[NWORDS] = + { "абажур", "абзац", "абонент", @@ -1678,8 +1681,8 @@ namespace Language "яхта", "ячейка", "ящик" - }), 4) - { + }; + set_words(words); populate_maps(); } }; -- cgit v1.2.3