Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Yershov <yershov@corp.mail.ru>2015-01-13 12:57:49 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:36:08 +0300
commiteaf43ae6feedb2e4e5f59e3932968d32c8f9f965 (patch)
treee019ca7960f0e230634ca877ff230a030219aca6 /indexer/features_vector.hpp
parenta873972368be4f5a386ced6d671b6bed81a2164c (diff)
Optimization memory reallocation while reading variable length records
Simple optimization get_mark_value Correct working with paths in generator_tool
Diffstat (limited to 'indexer/features_vector.hpp')
-rw-r--r--indexer/features_vector.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indexer/features_vector.hpp b/indexer/features_vector.hpp
index 93bea22d58..2cdf92f6fe 100644
--- a/indexer/features_vector.hpp
+++ b/indexer/features_vector.hpp
@@ -17,8 +17,8 @@ public:
void Get(uint64_t pos, FeatureType & ft) const
{
- uint32_t offset;
- m_RecordReader.ReadRecord(pos, m_buffer, offset);
+ uint32_t offset = 0, size = 0;
+ m_RecordReader.ReadRecord(pos, m_buffer, offset, size);
ft.Deserialize(m_LoadInfo.GetLoader(), &m_buffer[offset]);
}