-
Notifications
You must be signed in to change notification settings - Fork 325
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
Update method signatures in Client
in order to respect its parent
#507
Conversation
phansys
commented
Mar 14, 2019
Q | A |
---|---|
Branch | 2.1 |
Bug fix? | yes |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | n/a |
License | MIT |
Doc PR | n/a |
BTW, is there any reason for not using |
@phansys I have no idea ^^ |
It's fine for you if I implement |
In fact I guess it's because Client class inherits from
Perhaps all of these is done on purpose, not sure. |
@phansys I think it would not work but you can try and let me know. Another option would require not to extend from |
You're right, I was omitting that the methods on |
Ok for me but I would like another feedback. |
Yes, The fundamental problem with the approach has caused severe issues the past few months because the inheritance model breaks when function signatures do no match up exactly. We should actually, to achieve the same effect, generate the proxy at runtime based on the actual RTTI from the |
#399 is the tracker issue for the proxy approach and may contain some useful insights. |
Out of curiosity - what issue is this PR trying to solve? Unless we're really fixing something I'm 👎 on this one as I've just benchmarked my suspicion that using the inline constants is actually about 10% faster than using |
The issue which triggered this PR is exposed in the build of #505:
The usage of |
Ah I see, in that case I'm fine with it like this 👍 |
@curry684 Thanks for your enlightenment! What do you use to benchmark that case? I am really interested :-) |