diff options
author | Sergey Yershov <yershov@corp.mail.ru> | 2015-01-13 12:57:49 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:36:08 +0300 |
commit | eaf43ae6feedb2e4e5f59e3932968d32c8f9f965 (patch) | |
tree | e019ca7960f0e230634ca877ff230a030219aca6 /indexer/features_vector.hpp | |
parent | a873972368be4f5a386ced6d671b6bed81a2164c (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.hpp | 4 |
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]); } |