ClickHouse / ClickHouse/ClickHouse

Don't re-calculate heavy regex functions if not necessary

Open
#95,613 3 comments 0 reactions 0 assignees View on GitHub
comp-regular-function feature performance st-discussion
Dominant language
C++
Stars
49.9k
Forks
9k
Avg merge
21h 32m
Merged PRs (30d)
515

Description

### Company or project name

ClickHouse

### Use case

The [Ursa blog post](https://maksimkita.com/blog/ursa-clickhouse-research-fork.html) contains an optimization "Cache in heavy functions". We could try to implement that for `match()` and other regular expression functions, see src/Functions/MatchImpl.h. Could use the `LocalCacheTable` pattern from src/Functions/Regexps.h for that.

### Describe the solution you'd like

.

### Describe alternatives you've considered

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.