mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-26 01:04:34 +03:00
* Bug fix to faster huffman decoding
This commit is contained in:
parent
b166d1d2a2
commit
c8b89e37a5
|
@ -130,10 +130,8 @@ cdef class HuffmanCodec:
|
|||
if i_msg == n_msg:
|
||||
break
|
||||
i_byte += 1
|
||||
else:
|
||||
raise Exception("Buffer exhausted at %d/%d symbols read." % (i_msg, len(msg)))
|
||||
|
||||
|
||||
# as_bytes doesn't seek forward, so consume the number of bits we used
|
||||
bits.seek(bits.i + (i_byte * 8) + i_bit)
|
||||
|
||||
property strings:
|
||||
@cython.boundscheck(False)
|
||||
|
|
Loading…
Reference in New Issue
Block a user