squeaky-pl / japronto

Screaming-fast Python 3.5+ HTTP toolkit integrated with pipelining HTTP server based on uvloop and picohttpparser.
MIT License
8.61k stars 581 forks source link

Replace json with ujson? #33

Open dmargol1 opened 7 years ago

dmargol1 commented 7 years ago

This is just a suggestion, but I've found around a 25% speed boost parsing responses using ujson in place of json.

squeaky-pl commented 7 years ago

This is trivial to do but I need to measure things myself. Also ujson is written in C which opens a possibility of calling it without usual Python call convention overhead.

ludovic-gasc commented 7 years ago

Do your homeworks, but I can confirm the suggestion og @dmargol1: We use that in FrameworkBenchmarks test suite.