Closed dcelasun closed 6 years ago
yap, it's reduce memory and improve performance. I'll add this to my task list.
Good to hear, thanks!
for now, prototype works fine on support-native-scalar
branch.
simple performance check with example/prefecture.php on my macbook.
#native scalars off (default)
processing time: 5.417232 (0.000542/message)
#native scalars on
processing time: 4.771613 (0.000477/message)
I'll brush this branch up on this week.
Oops, Travis failed. I'll Check it when I back home
native scalars off (default)
processing time: 5.417232 (0.000542/message)
native scalars on
processing time: 4.771613 (0.000477/message)
Looking good, that's nearly a 12% improvement! I'll wait until the Travis build passes and run my own tests.
:+1: Especially for enums it would make sense.
guys, sorry for late response.
My wife will begin forced to stay in hospital in this week. I don't have time right now, but I'm going to release this improvement in this month :) thanks
No worries @chobie, hope your wife feels better soon :)
@chobie hope she will get better
As you've described in the wiki, all numeric types are converted to
string
in PHP. I understand why you chose this (PHP doesn't handle scalar primitives very well), but maybe you can provide a config option for this?For example:
This way we can have this:
This would have better performance on 64bit Linux and OS X systems. Any thoughts?