Closed bmschmidt closed 4 years ago
I'll update this in the Massive Texts fork, since I'll be looking to merge that here in the coming month or so. orjson
looks good - the built-in library was a bottleneck. The side benefit is that I can stop maintaining a conda package for ujson!
... but looks like I'll have to build an orjson conda package.
Updated https://github.com/massivetexts/htrc-feature-reader/commit/7eae68aa368f3e1bc41b36a4f504f8bbe6ff46c8 with rapidjson, which seems better supported.
Trying to install on a wonky machine, I found I had to manually remove the entry for ujson from setup.py because I was having trouble compiling it.
In general, ujson is a dead package; it might be worth switching to
orjson
for speed. But since there's already a fallback to standardjson
in the code here, I don't think it would hurt to just remove it from the setup?