[uWSGI] call a "streaming" LUA RPC from python

Davide Setti davide.setti at gmail.com
Tue Mar 29 18:38:53 CEST 2016


On Tue, Mar 29, 2016 at 6:32 PM, Davide Setti <davide.setti at gmail.com>
wrote:

> On Tue, Mar 29, 2016 at 5:45 PM, Riccardo Magliocchetti <
> riccardo.magliocchetti at gmail.com> wrote:
>
>> One possible solution would be to write the JSON parsing in C, but I
>> can't write
>>
>>> proper C code anymore... :(
>>>
>>
>> Have you tried ujson? maybe it's fast enough and does not consume too
>> much memory
>>
>
> The problem is not the JSON decoder itself I guess, but keeping the whole
> structure in memory. It's a few millions dicts, and dicts are heavy...
> But I may be wrong, I've no numbers
>

Ok, looks like I was wrong:
https://blog.ionelmc.ro/2015/11/22/memory-use-and-speed-of-json-parsers/

-- 

Davide Setti
code: http://github.com/vad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.unbit.it/pipermail/uwsgi/attachments/20160329/0a459e69/attachment.html>


More information about the uWSGI mailing list