Did anyone try that with userland implementation of scalar objects? I am trying to create a scalar classes extension in C with Boolean, Int, Float, Null and String, I suppose it will be even faster than userland implementation. I wonder if the speed of using scalar objects such as 2->abs(), and "my string"->toUpper() will be on par with just calling native function abs(2) and strtoupper("my string"). Or at least, it will not be magnitudes slower like if I wrap primitives in classes?
Did anyone try that with userland implementation of scalar objects? I am trying to create a scalar classes extension in C with Boolean, Int, Float, Null and String, I suppose it will be even faster than userland implementation. I wonder if the speed of using scalar objects such as 2->abs(), and "my string"->toUpper() will be on par with just calling native function abs(2) and strtoupper("my string"). Or at least, it will not be magnitudes slower like if I wrap primitives in classes?