Skip to content

perf: Use bulk-NULL builder in chr#21847

Open
neilconway wants to merge 1 commit intoapache:mainfrom
neilconway:neilc/perf-builder-chr
Open

perf: Use bulk-NULL builder in chr#21847
neilconway wants to merge 1 commit intoapache:mainfrom
neilconway:neilc/perf-builder-chr

Conversation

@neilconway
Copy link
Copy Markdown
Contributor

@neilconway neilconway commented Apr 25, 2026

Which issue does this PR close?

Rationale for this change

Optimize chr by avoiding per-row NULL bitmap maintenance, and also split the hot loop to avoid taking a branch when no NULL bitmap is given.

Benchmarks:

chr/array: 3.8768 µs → 3.1548 µs, −18.57% (`p < 0.05`)

What changes are included in this PR?

  • Optimize chr to reduce NULL-handling overhead

Are these changes tested?

Yes.

Are there any user-facing changes?

No.

@github-actions github-actions Bot added the functions Changes to functions implementation label Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

functions Changes to functions implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Optimize chr to use bulk-NULL string builder

1 participant