php-driver icon indicating copy to clipboard operation
php-driver copied to clipboard

WIP: Strip objects optimisation

Open joeyhub opened this issue 5 years ago • 3 comments

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.

joeyhub avatar Feb 20 '20 15:02 joeyhub

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.

joeyhub avatar Feb 20 '20 15:02 joeyhub

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.

joeyhub avatar Feb 20 '20 15:02 joeyhub

Good catch.

mpenick avatar Feb 20 '20 16:02 mpenick