Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Strip objects optimisation #142

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

joeyhub
Copy link

@joeyhub joeyhub commented Feb 20, 2020

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.

…ied object types, dedupe on name/index (fref), it already has a type enumeration that could be used everywhere, binds, etc.
Remi remington was it you?
@joeyhub
Copy link
Author

joeyhub commented Feb 20, 2020

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.

CPP_DRIVER_DIR=$PHP_CASSANDRA
fi
else
for i in /usr/local /usr; do
if test -f $i/include/cassandra.h; then
if test -f $i/include/cassandra/cassandra.h; then
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs some if then else for handling either situation (see remi merge).

@joeyhub
Copy link
Author

joeyhub commented Feb 20, 2020

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.

@mpenick
Copy link
Contributor

mpenick commented Feb 20, 2020

Good catch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants