[RFC] Remove all callable type hints for consistency and performance reasons#141
[RFC] Remove all callable type hints for consistency and performance reasons#141jsor merged 1 commit intoreactphp:masterfrom
Conversation
|
I've seen a 5% to 10% performance improvement running any of the benchmarks from the Note that I'm not suggesting we remove all type hints. This PR merely aims to remove the |
WyriHaximus
left a comment
There was a problem hiding this comment.
That is a nice and welcome performance improvement, LGTM ![]()
There was a problem hiding this comment.
... what? I'm not a react-php user so definitely feel free to ignore me but... what does "consistency" even mean here? I would also hope any loss of type-safety for performance reasons would also be backed by reproducible numbers; is there some missing context from this PR?
Edit: A bit of background: I've altered the engine to no-op the type-checking in the past. This did not register a significant improvement gain; this is why I do not trust the claim. Again, I'm not using this project so take my complaint with that in mind.
|
I can't reproduce any improvements in |
I'm filing this PR as an RFC to see if it makes sense to drop these type hints.