News for hackers. Stuff that matters.
Re:We have to talk about this Python, Gunicorn, Gevent thing by alrs on Saturday March 07, 2020 @06:23PM (#22514972)
Decoding JSON in Python without using a C library is indeed CPU-intensive.
Re:We have to talk about this Python, Gunicorn, Gevent thing by pdonis on Saturday March 07, 2020 @06:31PM (#22515011)
Python's standard library json module uses a C extension module for the CPU intensive stuff.
Re:We have to talk about this Python, Gunicorn, Gevent thing by hamburglar on Saturday March 07, 2020 @07:44PM (#22515406)
Yes, decoding JSON in python is much more efficient if you are not actually decoding JSON in python.
Re:We have to talk about this Python, Gunicorn, Gevent thing by kragen on Saturday March 07, 2020 @08:27PM (#22515625)
It's damn slow too compared to protobufs, or, especially, FlatBuffers.
Re:We have to talk about this Python, Gunicorn, Gevent thing by nodamage on Saturday March 07, 2020 @09:30PM (#22515933)
Yeah but I think it's reasonable to assume no one using Python in production actually does this.