simple and faster {,un}serializer for most python builtin data objects
Project description
fserial
=======
simple {,un}serializer for several python builtin objects (None/True/False/int/long/float/str/list/tuple/dict/set)
this extension runs much faster than builtin python serializers like marshal and cPickle.
Notice
=======
This extension uses a fix-length buffer in dumps, which has a default length of 64KB. Call fserial.setbufsize to set a larger lenghth, in case the result may exceed the default value.
Performance test:
=======
you can try test.py yourself.
Time consumed for 5,000,000 rounds of dumps/loads:
fserial.dumps: 1.581582
marshal.dumps: 5.548474
cPickle.dumps: 5.602932
simplejson.loads: #approximate 10x slower than cPickle/marshal
fserial.loads: 3.616863
marshal.loads: 6.749527
cPickle.loads: 15.953505
simplejson.loads: 23.159412
=======
simple {,un}serializer for several python builtin objects (None/True/False/int/long/float/str/list/tuple/dict/set)
this extension runs much faster than builtin python serializers like marshal and cPickle.
Notice
=======
This extension uses a fix-length buffer in dumps, which has a default length of 64KB. Call fserial.setbufsize to set a larger lenghth, in case the result may exceed the default value.
Performance test:
=======
you can try test.py yourself.
Time consumed for 5,000,000 rounds of dumps/loads:
fserial.dumps: 1.581582
marshal.dumps: 5.548474
cPickle.dumps: 5.602932
simplejson.loads: #approximate 10x slower than cPickle/marshal
fserial.loads: 3.616863
marshal.loads: 6.749527
cPickle.loads: 15.953505
simplejson.loads: 23.159412
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fserial-0.0.1.tar.gz
(2.8 kB
view details)
File details
Details for the file fserial-0.0.1.tar.gz
.
File metadata
- Download URL: fserial-0.0.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 715d0aef6b7cb89ca00033e6ac61e1f997e53cc1ab89e6f7f4a1e11e577755b6 |
|
MD5 | 99b89e51604620253d7961a2b06968c2 |
|
BLAKE2b-256 | 93327f5c614114ec23a15ae7f0d6cb2b0e18a0f94e0e4f101ce4d179e432bc1b |