php-driver
php-driver copied to clipboard
WIP: Strip objects optimisation
This is a work in progress for removing object wrappage. This is the minimal I need for my use case but not yet appropriate for other use as it breaks BC and needs lib redesign to work with PHP properly.
The problem is other OOP languages with strict typing, etc such as C++, C# and Java, can probably box and unbox things but not so with PHP so the wrappage is a guaranteed RAM/CPU issue with the only want to optimise it to outright remove it.
To fix this more holistically then I probably want to wipe out the objects altogether / put on another layer and just use type + value with object wrapper being some other option or something.
In some cases the user can happily avoid type because defaults / implicits and knowns will do the trick.
I'm not sure if I'm going to finish this. I've stripped Cassandra from my tech stack entirely as it wasn't the appropriate solution to the problem so I'll no longer need to maintain this.
Good catch.