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

fix: Reduce lock cost in AsciiInfo updates #12363

Closed
wants to merge 1 commit into from

Conversation

Yuhta
Copy link
Contributor

@Yuhta Yuhta commented Feb 17, 2025

Summary:
In some cases (e.g. row-wise deserialization) we need to resize the
string vector frequently. In that case none of the ASCII info is valid, but we
still pay the price to lock and check the state. Fix the cost by using an
atomic boolean for fast path check.

Differential Revision: D69750090

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D69750090

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Feb 17, 2025
Copy link

netlify bot commented Feb 17, 2025

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 3bf339c
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/67b770c13c955a0008de6f3a

Yuhta added a commit to Yuhta/velox that referenced this pull request Feb 17, 2025
Summary:

In some cases (e.g. row-wise deserialization) we need to resize the
string vector frequently.  In that case none of the ASCII info is valid, but we
still pay the price to lock and check the state.  Fix the cost by using an
atomic boolean for fast path check.

Differential Revision: D69750090
Yuhta added a commit to Yuhta/velox that referenced this pull request Feb 18, 2025
Summary:

In some cases (e.g. row-wise deserialization) we need to resize the
string vector frequently.  In that case none of the ASCII info is valid, but we
still pay the price to lock and check the state.  Fix the cost by using an
atomic boolean for fast path check.

Differential Revision: D69750090
Summary:

In some cases (e.g. row-wise deserialization) we need to resize the
string vector frequently.  In that case none of the ASCII info is valid, but we
still pay the price to lock and check the state.  Fix the cost by using an
atomic boolean for fast path check.

Differential Revision: D69750090
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D69750090

Copy link
Contributor

@kevinwilfong kevinwilfong left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 381dfcd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants