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

Hyperscan better usage of scratch space and error handling #4866

Merged
merged 5 commits into from
Apr 1, 2019
Merged

Hyperscan better usage of scratch space and error handling #4866

merged 5 commits into from
Apr 1, 2019

Conversation

danlark1
Copy link
Contributor

@danlark1 danlark1 commented Mar 31, 2019

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

For changelog. Remove if this is non-significant change.

Category (leave one):

  • Improvement

Short description (up to few sentences):
We use hs_clone_scratch instead of hs_alloc_scratch because it is faster and recommended by the hyperscan API. Also, I add error handling for hs_scan (everything can happen, we should know about this).

Database is thread-safe, Scratch can be allocated once and copied many times. So no need to use the old pool, it is better to once safely add Regexps and use it over times.

@alexey-milovidov alexey-milovidov merged commit d26181e into ClickHouse:master Apr 1, 2019
@abyss7 abyss7 added the pr-improvement Pull request with some product improvements label Apr 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-improvement Pull request with some product improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants