-
-
Notifications
You must be signed in to change notification settings - Fork 521
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
Optimize TryGetableFromJson #1249
Conversation
@billy1624 I suggest the code here, add some unit tests to robust this logic |
We already have the test cases in place, this PR is a performance improvement with no breaking changes sea-orm/tests/common/features/json_struct.rs Lines 1 to 25 in 029265e
sea-orm/tests/json_struct_tests.rs Lines 1 to 97 in 5b931a5
|
How much performance will be improved? Is there a numerical result comparison? |
I don't have a precise benchmark |
PR Info
Changes
TryGetableFromJson::try_get_from_json()
: deserializing intoSelf
directly without the need of a intermediateserde_json::Value