-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Remove ulele/deepcopier in favor of JSON deep copy #2760
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
Remove ulele/deepcopier in favor of JSON deep copy #2760
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mheon The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
LGTM |
|
All kinds of test unhappiness @mheon |
|
It's our good old friend |
|
Fixed by replacing a |
cmd/podman/ps.go
Outdated
| @@ -647,7 +646,7 @@ func printFormat(format string, containers []shared.PsContainerOutput) error { | |||
| } | |||
|
|
|||
| func dumpJSON(containers []shared.PsContainerOutput) error { | |||
| b, err := json.MarshalIndent(containers, "", "\t") | |||
| b, err := json.MarshalIndent(containers, "", " ") | |||
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.
ugh
|
Changes LGTM, tests are getting a lot closer, but still not all in yet. |
7b8d2e2 to
a691d12
Compare
We have a very high performance JSON library that doesn't need to perform code generation. Let's use it instead of our questionably performant, reflection-dependent deep copy library. Most changes because some functions can now return errors. Also converts cmd/podman to use jsoniter, instead of pkg/json, for increased performance. Signed-off-by: Matthew Heon <[email protected]>
Signed-off-by: Matthew Heon <[email protected]>
The jsoniterator library believes that panic() is a reasonable response to being told to indent JSON with a tab. So use spaces instead. Signed-off-by: Matthew Heon <[email protected]>
a691d12 to
179a66f
Compare
|
Rebased, CI should be happy now |
|
/lgtm |
We have a very high performance JSON library that doesn't need to perform code generation. Let's use it instead of our questionably performant, reflection-dependent deep copy library.
Most changes because some functions can now return errors.
Also converts cmd/podman to use jsoniter, instead of pkg/json, for increased performance.