3 ms·
Decoding JSON in Python without using a C library is indeed CPU-intensive.
by alrs 7y ago
Decoding JSON in Python without using a C library is indeed CPU-intensive.
- pdonis 7y agoPython's standard library json module uses a C extension module for the CPU intensive stuff.
- hamburglar 7y agoYes, decoding JSON in python is much more efficient if you are not actually decoding JSON in python.
- kragen 7y agoIt's damn slow too compared to protobufs, or, especially, FlatBuffers.
- nodamage 7y agoYeah but I think it's reasonable to assume no one using Python in production actually does this.