Closed rybakit closed 3 years ago
@rybakit yep, you are right, thanks!
Hey @nekufa, you are welcome :) By the way, if you want to make things a bit faster, you can move this casting to the msgpack transformer (one or several) and drop these loops entirely, it will reduce the time complexity from O(n^2) to O(1).
@rybakit interesting, thanks!
is_object()
,get_class()
andis_subclass_of()
seem to be redundant and can be replaced withinstanceof
.Also, I'm confused by the line
where
2 ^ 32 - 1
is evaluated to29
(because^
is a bitwise XOR operator). Was it meant to be2 ** 32 - 1
? If so, is it a sort of integer overflow detection or is there another cause (FTR, rybakit/msgpack converts overflowed integers to strings by default)?