-
Notifications
You must be signed in to change notification settings - Fork 93
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
protocol: follow strict datatype in TJsonProtocol, fixes #71 #85
Conversation
Codecov Report
@@ Coverage Diff @@
## master #85 +/- ##
==========================================
+ Coverage 80.79% 80.86% +0.07%
==========================================
Files 35 35
Lines 3540 3527 -13
==========================================
- Hits 2860 2852 -8
+ Misses 680 675 -5
Continue to review full report at Codecov.
|
|
||
if ttype == TType.MAP: | ||
return map_to_json(val, spec) | ||
TTYPE_TO_JSONFUNC_MAP = { |
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.
@ethe Do you think with there is negative performance impact if we move to map from branching?
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.
I think there is not much impact here.
if ttype in (TType.STRING, TType.BOOL): | ||
return val | ||
|
||
TTYPE_TO_OBJFUNC_MAP = { |
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.
Same here.
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.
LGTM
No description provided.