Skip to content

Commit e850475

Browse files
committed
Update comment
1 parent 751e7e0 commit e850475

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

maxminddb/decoder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,12 @@ def _size_from_ctrl_byte(self, ctrl_byte, offset, type_num):
167167
if type_num == 1 or size < 29:
168168
return size, offset
169169

170-
# Using unpack rather than int_from_bytes as it is about 200 lookups
171-
# per second faster here.
172170
if size == 29:
173171
size = 29 + int_from_byte(self._buffer[offset])
174172
return size, offset + 1
175173

174+
# Using unpack rather than int_from_bytes as it is faster
175+
# here and below.
176176
if size == 30:
177177
new_offset = offset + 2
178178
size_bytes = self._buffer[offset:new_offset]

0 commit comments

Comments
 (0)