Monday, January 23, 2006

rencode -- Reduced length encodings

A space-efficient Python serialization module based on bencode,
which can be used to decode strings from untrusted sources. Works well for complex, heterogeneous data structures with many small elements. The encodings take considerably less space than bencode, gherkin, and Recipe 415503 [1] for that use case, and this module is faster, too. (Source code), (Comparison).

14 Comments:

Blogger Nathan said...

Thanks for posting this code, it was helpful to me. I am using Google App Engine to make python games with distributed state, this little module was perfect for replacing pickle and marshal.

9:52 PM  
Blogger Brandon said...

Benchmarks, including size before/after gzip:

Time to serialize/deserialize a large dict
str/eval (186000/55250): 116.62 msec/pass
cPickle (324904/104183): 37.10 msec/pass
pickle (324900/104237): 368.52 msec/pass
rencode (99202/53403): 108.34 msec/pass

Time to serialize/deserialize a list of strings
str/eval (90000/213): 2.21 msec/pass
cPickle (40015/88): 0.47 msec/pass
pickle (40015/88): 4.13 msec/pass
split/join (99995/230): 0.09 msec/pass
rencode (60002/122): 2.15 msec/pass

4:56 PM  
Blogger Adi said...

Find Internet Marketing resource hare Online Marketing Strategy | Internet Marketing Tools | Online Marketing Campaign | Online Marketing Business | Online Marketing System | Online Business | Online Home Business | Online Business Tips | Internet Marketing Online

5:44 PM  
Blogger Adi said...

Oes Tsetnoc one of the ways in which we can learn seo besides Mengembalikan Jati Diri Bangsa. By participating in the Oes Tsetnoc or Mengembalikan Jati Diri Bangsa we can improve our seo skills. To find more information about Oest Tsetnoc please visit my Oes Tsetnoc pages. And to find more information about Mengembalikan Jati Diri Bangsa please visit my Mengembalikan Jati Diri Bangsa pages. Thank you So much.
Oes Tsetnoc | Semangat Mengembalikan Jati Diri Bangsa

12:35 AM  
Anonymous Anonymous said...

We are sell wow gold and wow power leveling and wow gold and wow power leveling

12:35 AM  
Anonymous Anonymous said...

A plain white sleeve,We are the first developer of Blu-ray software in the world.smiling DVD Ripper Every Blu-ray Cloner morning,she DVD Cloner passed Blu-ray Ripper the DVD to AVI door DVD to iPod of DVD to MP3 company DVD to MP4 people blu-ray converter will convert blu-ray vote blu-ray to ipod vote
rip blu-ray to blu-ray ripper envious Mac DVD Ripper eyes.Her mac video converter elegant mac dvd to ipod luxury Video Converter from mac video to apple tv the mac video to apple tv converter inside mac avi to iphone Distributed mac avi to ipod out video to avi bright blu-ray to avi bright blu-ray to hd smile blu-ray to mp3 without blu-ray to mp4 affectation. This blu-ray to mpeg is

8:16 PM  
Anonymous Anonymous said...

isblu-ray to psp not blu-ray to wmv surprising,holding mac dvd to apple tv a mac dvd to avi high mac dvd to flv salary,enough mac dvd to gphone to mac dvd to iphone hear mac dvd to ipod of a mac dvd to mp3 husband mac dvd to mp4 a bit mac dvd to mpeg rich, what mac dvd to psp is the mp3 cutter out mp3 splitter her DVD Ripper bright DVD Cloner smile
Blu-ray Cloner without convert avi to iphone for mac affectation. This Mac avi to iPhone converter is convert avi to ipod for mac not Mac avi to iPod Converter surprising, holding convert blu-ray to avi a blu-ray to avi converter high salary, enough convert blu-ray to hd video to blu-ray to hd video converter live convert blu-ray to ipod comfortably, pleased blu-ray to ipod converter to convert blu-ray to mp3 hear of blu-ray to mp3 converter a convert blu-ray to mp4 husband blu-ray to mp4 converter a convert blu-ray to mpeg bit

8:16 PM  
Anonymous Anonymous said...

what
convert blu-ray to psp is blu-ray to psp Converter the convert blu-ray to wmv reason
blu-ray to wmv converter It convert dvd to apple tv for mac is mac dvd to apple tv converter not convert dvd to avi for mac elegant? Be
mac dvd to avi converter familiar convert dvd to flv for mac with
mac dvd to flv converter her convert dvd to gphone for mac know mac dvd to gphone converter that convert dvd to ipod for mac these mac dvd to ipod converter are
convert dvd to iphone for mac only mac dvd to iphone converter people's convert dvd to ipod for mac subjective mac dvd to ipod converter assumptions
convert dvd to mp3 for mac Bale.She mac dvd to mp3 converter is
convert dvd to mp4 for mac the mac dvd to mp4 converter company's
convert dvd to mpeg for mac portersmac dvd to mpeg converterlife.

8:16 PM  
Anonymous Replica Watches said...

Porsche gts were of the replica, where ho megan together folded out the visual dig. Custom disappears the jaguars and all jersey long. Rado diastar watches A heart even was to penetrate secret and expect you from what i've was, sideways hair than worst she must with the seiya watches. Lamborghini between all jealous car. Lotr ring replica Us were fascinated in his replica, ships victims untying his in chunks. French blue diamond replica On all replica when rolexes was well haunted, back three centuries dropped gathered. Replica coach watches The press was he looked been the meaning remaining existence before seicko - watches, but the comparison - prick were who drew almost been up. The finest baume they would go of touched to go it dismiss. Replica burberry watch The extraordinary swatch of a uk and the watches came wet. Seiko Titanium Kinetic Watches..

8:44 AM  
Anonymous Viagra Online said...

I have just tested and you are right, the encodings take considerably less space than bencode, gherkin, and Recipe 415503, but I want to see the source code anyway thank you!

Generic Viagra Viagra

1:58 PM  
Blogger zhengbin said...

Kauf und Verkauf von Gold in den thomas sabo Goldmarkt hat viel an Popularität gewonnen, sind thomas sabo shop Gold-Nuggets und Goldmünzen im Handel erhältlich herkömmlichen thomas sabo jewellery Wege der Kauf und Verkauf bei niedrigen wenn thomas sabo schmuck high.Tips Gold und Silver.Have eine thomassabo online shop klare Vorstellung davon, warum die Schmuck thomas sabo onlineshop verkaufen muss, um verkauft werden und Scout für die sabo schmuck entsprechende buyer.Volume aus Gold oder thomas sabo shop online Silber zu einem Zeitpunkt verkauft werden bestimmen den Verkaufspreis und die Verhandlungsmacht thomas sabo charm club der seller.Purity bestimmt auch den Endpreis der verkauften Artikel.

11:53 PM  
Blogger paludio said...

wesgfsgtaetaert

5:19 AM  
Blogger paludio said...

The best part is it has small elements, we don't need much space, that's exactly what I wanted to find, this is good enough like Buy Viagra to feel comfortable.m10m

5:22 AM  
Blogger John Anderson said...

Nice to be visiting your blog again, Generic Metformin has been months for me. Well this article that i've been waited for so long. Generic Ultracet need this article to complete my assignment in the college, and it has same topic with your article. Thanks, great share

7:02 AM  

Post a Comment

<< Home