librelist archives

« back to archive

_tnetstring for python: now with rendering

_tnetstring for python: now with rendering

From:
Ryan Kelly
Date:
2011-03-22 @ 12:50
could not decode message

Re: [mongrel2] _tnetstring for python: now with rendering

From:
Zed A. Shaw
Date:
2011-03-25 @ 20:39
On Tue, Mar 22, 2011 at 11:50:10PM +1100, Ryan Kelly wrote:
> 
> Hi All,
> 
>   One final update for those interested in a C-based implementation of
> tnetstrings.  The attached version implements rendering from python
> objects into tnetstrings, with a roundtrip time consistently >30% better
> than cjson on my machine:

This is awesome stuff, I'm going to just go and steal your tns_core.c
and then use it in Mongrel2.  It's good code and unless it's slow for
some reason should be perfect.

-- 
Zed A. Shaw
http://zedshaw.com/