Hi, I have a python web service that does an HTTP request to ElasticSearch and generates a JSON with all the results. The problem is that the result set can be quite big, therefore we switched to ijson for streaming JSON decoding and chunked encoding for the output.
But now it's slow, because ijson is: the whole thing is now CPU bound. One possible solution would be to write the JSON parsing in C, but I can't write proper C code anymore... :( Another solution would be to call a LUA RPC, but we would have memory problems because uWSGI RPC only supports strings as an exchange format, a single string I think. Are there tricks to easily dump to file/unix pipes or something? Regards. -- Davide Setti code: http://github.com/vad
_______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
