3 ms·
Python is slower than most things. I have this thing I do where I'm using a json file basically as a database. Doing it with pure python was annoyingly slow so
by UncleEntity 2y ago
Python is slower than most things.
I have this thing I do where I'm using a json file basically as a database. Doing it with pure python was annoyingly slow so I wrote a simple(ish) wrapper around the boost::property-tree library (which does xml and json as both are needed for the project) and have been happily chugging along for years now.
I do wonder how much easier it would be to do the same thing in rust as I've found half the battle is tracking object/class lifetimes across the C-API barrier. As a side note, I'm also really good at hunting down segfaults...
- VagabundoP 2y agohttps://pypi.org/project/orjson/ https://pypi.org/project/orjson/ Try this from pypi. Its a big boost when dealing with json in python.