osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[requirements][placement] orjson instead of stdlib json


On Aug 28, 2019, at 7:30 AM, Chris Dent <cdent+os at anticdent.org> wrote:
> 
> I suspect the reason my tests are seeing such a huge improvement
> (different from orjson's benchmark) is because this is one single
> very large (2583330 bytes when JSON) python structure being
> dumped just once.

While optimizing the performance of JSON-ifying this huge thing is always a good idea, it might be better to consider why such a huge object is necessary in the first place.

"Doctor, it hurts when I do this"
"Well, then stop doing that!"


-- Ed Leafe





-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20190828/dc8d430f/attachment.sig>