|
|
|
|
|
by peterohler
527 days ago
|
|
Oj author here. While it's flattering to have Oj be the standard to beat I'd like to point out that most of the issues with Oj revolve around the JSON gem and Rails doing a monkey patch dance and Oj trying to keep pace with the changes. The Oj.mimic_JSON attempts to replace the JSON gem and only replaces the monkey patches made by that gem. The preferred approach for Oj outside of trying to mimic the JSON gem to to never monkey patch. That approach is used in all other modes that are not mimicking the JSON gem or Rails. I should point out that other Oj modes perform much better than the JSON gem and Rails modes. |
|
Which modes are that? https://github.com/ohler55/oj/blob/develop/pages/Modes.md#oj...
I tried:
and a few others and none seemed faster than `json 2.9.1` on the benchmarks I use.Edit:
Also most of these mode simply aren't correct in my opinion: