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

Value::update performance enhancement & simplification #521

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

zakalibit
Copy link
Contributor

There is no point updating the count_ in the Value::update() for types other than collection type.
This change saves another 15% ish in cass_iterator_next

Screenshot 2021-11-20 at 16 44 40

Screenshot 2021-11-20 at 16 45 31

@zakalibit
Copy link
Contributor Author

any update on this one?

@absurdfarce
Copy link
Collaborator

@zakalibit No update yet, but it is on my list. I'll get to it as soon as I can!

@absurdfarce absurdfarce self-requested a review December 8, 2021 17:29
}
} else {
count_ = 0;
if (!is_null_ && data_type_->is_collection()) {
Copy link
Contributor

@mpenick mpenick Dec 8, 2021

Choose a reason for hiding this comment

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

Doesn't this result in an invalid count for tuples and UDTs?

@zakalibit
Copy link
Contributor Author

@mpenick any chance to get this PR reviewed?

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.

3 participants