-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
kill multi_json Dependencies #1274
Conversation
@@ -15,6 +15,7 @@ | |||
|
|||
#### Fixes | |||
|
|||
* [#1274](https://github.com/ruby-grape/grape/pull/1274): Kill multi_json Dependencies - [@u2](https://github.com/u2). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should say "Removed multi_json
dependencies", lets not kill anything ;)
If this is to be merged, we need an UPGRADING entry that says that we no longer use MultiJson and provides a Json formatter example of how to put it back. I am torn though. I have a project that has heavily benchmarked itself using Thoughts? |
What exactly is the advantage of this? It seems that it can kill OJ support which, from my understanding, performs better than the standard json module. |
I think it comes from http://www.mikeperham.com/2016/02/09/kill-your-dependencies/. |
Yes, it comes from mikeperham blog Kill Your Dependencies.
Less gem means less memory, less dependencies, and less bugs.And the promoting of performance of And
|
I am on the side of removing the First, this definitely needs UPGRADING describing how to re-introduce something like OJ (a custom formatter for example). Maybe we can add configuration to the formatter where you can give it the engine to use for formatting and parsing? Or maybe it can detect the presence of multi_json and use that where available? Not sure what's best. Another option would be a |
Yes, what about adding a configuration option like |
Maybe |
👍 It looks workable. |
I am still very interested in this @u2! |
Any progress on this? |
Replacing in favor of #1623. |
ruby-grape/grape-entity#209