japronto icon indicating copy to clipboard operation
japronto copied to clipboard

Replace json with ujson?

Open dmargol1 opened this issue 8 years ago • 2 comments

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

dmargol1 avatar Feb 05 '17 07:02 dmargol1

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.

squeaky-pl avatar Feb 05 '17 09:02 squeaky-pl

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

ludovic-gasc avatar Feb 05 '17 10:02 ludovic-gasc