Skip to content

Remove begin/end token iterators from ASTLiteral as it used only for highlighting and VALUES parsing - #93785

Closed
qoega wants to merge 4 commits into
masterfrom
ast-literal-removebeginend
Closed

qoega wants to merge 4 commits into
masterfrom
ast-literal-removebeginend

Conversation

@qoega

@qoega qoega commented Jan 9, 2026

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Performance Improvement

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Improve memory footprint of ASTLiteral by removing std::optional<TokenIterator> begin/end from object. Optimization makes sense as fields are not used when highlighting is not used and there is no VALUES parsing.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

I applied clang-format to files and formatting diff became larger.

Screenshot 2026-01-09 at 09 49 55

@clickhouse-gh

clickhouse-gh Bot commented Jan 9, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [57d045c]

Summary: ❌

job_name test_name status info comment
Integration tests (amd_binary, 5/5) failure
test_broken_projections/test.py::test_broken_ignored_replicated FAIL cidb, issue
AST fuzzer (amd_debug) failure
Logical error: Bad cast from type A to B (STID: None) FAIL cidb
BuzzHouse (amd_debug) failure
Logical error: 'Inconsistent AST formatting: the query: (STID: 1941-1bfa) FAIL cidb, issue
BuzzHouse (amd_msan) failure
Logical error: Unexpected literal type A (STID: 3778-478b) FAIL cidb
Stateless tests (arm_asan, targeted) error

@clickhouse-gh clickhouse-gh Bot added the pr-performance Pull request with some performance improvements label Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-performance Pull request with some performance improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant