-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wip: fast_jsonparser adapter for multi_json #201
base: master
Are you sure you want to change the base?
Conversation
maierru
commented
Dec 7, 2020
For |
@maierru What was the issue here? I would love to have a fast_jsonparser adapter here :) |
stopped because of this and this (looks dangerous) |
The first issue was fixed and the second issue, too I would argue. So, is there any chance to revive this PR? |
True, the memory issue was unconfirmed, can't hurt to have another adapter. Can the adapters be published separately? This was the faraday route I think, makes maintenance easier. |
Allowing adapters to be released as separate gems would certainly make maintenance of this library much easier. On the other hand, it would require end users to be aware of MultiJSON and bundle their preferred adapter to get optimal performance, which today they get for free. It's also not clear how we would rank adapters if multiple adapters were bundled. Presumably, either the first or last required adapter would win, whereas today the fastest adapter wins. We’d also need to consider the default adapter that would be used if no other adapter is bundled. Should it be the |
@sferik Either the default adapter would be the json from the stdlib, or there would be no default. As for multiple things being loaded, if you follow in Faraday's footsteps, it would be based on whatever you For a large project, different dependencies might use different parsers, so it shouldn't be global. |