msgpack-python/msgpack
Bas Westerbaan a71a24d86a Fix #124
When using Unpacker as an iterator, after each yield, the internal
buffer (_fb_buffer) was compacted by reallocation (done by _fb_consume).
When dealing with a lot of small objects, this is very ineffecient.
Thus in commit 7eb371f827 the pure python
fallback only reallocated the complete buffer when the iteration stops.
When halfway there happens to be data missing in the buffer, we rollback
the buffer to the state before this failed call, and raise an OutOfData.
This rollback, done by _fb_rollback, did not consider the possibility
that the buffer was *not* reallocated.  This commit corrects that.
2015-01-26 20:34:31 +01:00
..
__init__.py Document update. 2013-10-21 01:47:54 +09:00
_packer.pyx Fix build failuer for Python 2.7 on Windows. 2015-01-07 12:10:42 +09:00
_unpacker.pyx Fix error when use unicode_literal in Python 2 2015-01-25 02:35:57 +09:00
_version.py 0.4.5 2015-01-26 00:38:36 +09:00
exceptions.py * msgpack/exceptions.py: Fix typo in error message. 2013-09-13 13:47:13 +02:00
fallback.py Fix #124 2015-01-26 20:34:31 +01:00
pack.h Fix build failuer for Python 2.7 on Windows. 2015-01-07 12:10:42 +09:00
pack_template.h Fix compile error. 2015-01-09 04:10:25 +09:00
sysdep.h s/\t/ /g 2013-02-27 21:24:25 +09:00
unpack.h Add max_<type>_len option to unpacker. (fixes #97). 2015-01-25 01:41:21 +09:00
unpack_define.h Support unpacking new types. 2013-10-20 22:59:27 +09:00
unpack_template.h cleanup 2013-10-20 23:06:02 +09:00