summaryrefslogtreecommitdiff
path: root/msgpack/fallback.py
Commit message (Collapse)AuthorAgeFilesLines
* fix typos and other cosmetic issues (#214)release-0.4TW2017-01-111-8/+8
| | | | | | | cosmetic issues: - reST headlines' underline length needs to match the headline length (looks like somebody is / was using a proportional font) - Cython code lines do not need to be terminated with a semicolon - always use triple-double-quotes for docstrings
* Merge pull request #163 from ThomasWaldmann/masterINADA Naoki2015-12-101-1/+1
|\ | | | | fix typos
| * fix typosThomas Waldmann2015-12-091-1/+1
| |
* | calling the default function upon integer overflow in the fallback routinePramukta Kumar2015-03-171-0/+4
|/
* fallback: Add some comment to Unpacker members.INADA Naoki2015-01-271-1/+8
|
* Fix #124Bas Westerbaan2015-01-261-1/+4
| | | | | | | | | | | | 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 7eb371f8278941fb2323e0c2333ed89c88ab822b 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.
* Add max_<type>_len option to unpacker. (fixes #97).INADA Naoki2015-01-251-29/+98
| | | | Fix build error on 32bit environment (fixes #102).
* add support for pypy3Xiaojie Lin2014-11-141-1/+4
|
* fallback: fix BufferFull with sloppy consumeBas Westerbaan2014-06-151-1/+12
|
* fallback: _fb_read: do a big read, when we need a big readBas Westerbaan2014-06-141-2/+5
|
* fallback: add some comments to _fb_readBas Westerbaan2014-06-141-0/+4
|
* fallback: do not reset the buffer completely in between of iterationsBas Westerbaan2014-06-141-1/+11
|
* fallback: _fb_consume: improve performance with pypyBas Westerbaan2014-06-141-3/+8
|
* fallback: set default read_size to 4096Bas Westerbaan2014-06-141-1/+1
|
* fallback: add missing update of _fb_buf_nBas Westerbaan2014-06-141-0/+1
|
* Fix size limit on pack_array_header and pack_map_header.INADA Naoki2014-03-261-0/+4
|
* Merge branch 'pr/82'INADA Naoki2014-02-171-0/+2
|\
| * fixINADA Naoki2014-02-171-1/+1
| |
| * fixed support of python3Sergey Zhuravlev2014-02-121-1/+1
| |
| * Added support of bytearrays to msgpack/fallback.pySergey Zhuravlev2013-12-151-0/+2
| |
* | Always raise TypeError for wrong argument typesWouter Bolsterlee2014-02-111-7/+7
|/ | | | | | | The code that checks whether hooks are callable() (and some other type checks) should always raise TypeError on failure. Before this change, both ValueError and TypeError were used in an inconsistent way (C extension and Python implementation were not the same).
* fallback: support packing ExtTypeINADA Naoki2013-10-211-76/+105
|
* fallback: Support pack_ext_type.INADA Naoki2013-10-201-7/+39
|
* code refactoring.INADA Naoki2013-10-201-17/+14
|
* Add ext type support to fallback.Unpacker.INADA Naoki2013-10-171-16/+56
|
* Add bin type support for fallback Unpacker.INADA Naoki2013-10-171-0/+19
|
* Add bin type support to pure Python packer.INADA Naoki2013-10-171-8/+24
|
* refactoring.INADA Naoki2013-10-171-17/+0
|
* fix more comment typosYAMAMOTO Takashi2013-05-071-1/+1
|
* fix a typo in a commentYAMAMOTO Takashi2013-05-011-1/+1
|
* better packer docstringINADA Naoki2013-02-261-0/+24
|
* fallback: refactorINADA Naoki2013-02-251-32/+30
|
* Revert skipping reserved byte.INADA Naoki2013-02-231-6/+3
|
* Fix exception incompatibility.INADA Naoki2013-02-221-1/+4
|
* Fix easy bug.INADA Naoki2013-02-211-1/+1
|
* skip reserved byte.INADA Naoki2013-02-211-2/+12
|
* On PyPy, preallocate listsAlex Gaynor2013-02-161-1/+3
| | | When deserealizing arrays, preallocate the resulting list at the correct size.
* Use _private names for non public data members. (fix #44)INADA Naoki2013-02-041-75/+76
|
* Fix minor bugs and tuning unpacking dict.INADA Naoki2013-02-031-9/+16
|
* fallback: Support Python 3.INADA Naoki2013-01-291-20/+34
|
* pep8 friendly.INADA Naoki2013-01-291-17/+29
|
* fallback: _fb_read: add fast-pathBas Westerbaan2013-01-291-0/+5
|
* Revert "fallback: Use mmap objects instead of strings to unpack"Bas Westerbaan2013-01-291-51/+29
| | | | | | See next commit. This reverts commit 770fed6b7f1ce1f6e9c20881897a417680c8b79a.
* fallback: Use mmap objects instead of strings to unpackBas Westerbaan2013-01-291-29/+51
| | | | Signed-off-by: Bas Westerbaan <bas@westerbaan.name>
* fallback: add actual rollback and add a testcase for itBas Westerbaan2013-01-291-8/+13
| | | | Signed-off-by: Bas Westerbaan <bas@westerbaan.name>
* fallback: bugfix in next()Bas Westerbaan2013-01-291-1/+1
|
* fallback: do not use dynamic format strings for struct.(un)packBas Westerbaan2013-01-291-5/+7
| | | | Increases performance on PyPy.
* fallback: performance: write(a+b) -> write(a); write(b)Bas Westerbaan2013-01-291-1/+2
|
* fallback: two fixes for raising ExtraDataBas Westerbaan2013-01-281-8/+17
|
* fallback: use __pypy__.builders.StringBuilder when availableBas Westerbaan2013-01-281-10/+36
| | | | | | This increases performance *a lot* on PyPy. Signed-off-by: Bas Westerbaan <bas@westerbaan.name>