Update strings.pyx

This commit is contained in:
Roman 2017-11-14 19:44:40 +03:00 committed by GitHub
parent 3d247d2bb8
commit caae77f72d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -263,6 +263,8 @@ cdef class StringStore:
self.keys.swap(tmp)
strings = list(self)
self._reset_and_load(strings)
# Here we have strings but hits to it should be reseted
self.hits.clear()
cdef const Utf8Str* intern_unicode(self, unicode py_string):
# 0 means missing, but we don't bother offsetting the index.