diff options
author | vng <viktor.govako@gmail.com> | 2012-02-11 01:33:49 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:33:58 +0300 |
commit | edd7834f31c01f2c17bd5a814f84a347767e20ba (patch) | |
tree | 73d88cd2374bed658cc0677e3eefb52f9ad62105 | |
parent | 6e02a64e806509f30e8c3ff64087f59c7ee83cb2 (diff) |
[search] Different constant for Desktop and Modile search index generation.
-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); |