diff options
-rw-r--r-- | indexer/string_file.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/indexer/string_file.cpp b/indexer/string_file.cpp index b51532abc3..1b411f3340 100644 --- a/indexer/string_file.cpp +++ b/indexer/string_file.cpp @@ -44,7 +44,13 @@ bool StringsFile::StringT::operator == (StringT const & name) const void StringsFile::AddString(StringT const & s) { - if (m_strings.size() >= 30000) +#ifdef OMIM_OS_DESKTOP + size_t const maxSize = 1000000; +#else + size_t const maxSize = 30000; +#endif + + if (m_strings.size() >= maxSize) Flush(); m_strings.push_back(s); |