Skip to content

TimeSeries: reduce overhead on single-aggregator TSElement path (follow-up to #4504) - #4537

Merged
ggivo merged 8 commits into
masterfrom
topic/ggivo/ts-multi-aggreagtion-singlevalue-arr-size
May 26, 2026
Merged

ggivo merged 8 commits into
masterfrom
topic/ggivo/ts-multi-aggreagtion-singlevalue-arr-size

Conversation

@ggivo

@ggivo ggivo commented May 22, 2026 •

Copy link
Copy Markdown
Collaborator

…


Note

Low Risk
Internal representation and builder wiring change with preserved public API and broad unit tests; no auth or security impact.

Overview
Optimizes the common single-value Time Series sample path by storing a double on TSElement instead of allocating a List, while keeping getValues() behavior via Collections.singletonList.

Multi-aggregator samples are now built as an internal TSElement.MultiValueTSElement subclass (used from TimeSeriesBuilderFactory when a sample has more than one value). equals/hashCode are adjusted so single-value and singleton multi-value instances compare consistently, with doubleToLongBits for plain TSElement equality.

Adds TSElementTest covering single-value, multi-value, and cross-type equality and accessors.

Reviewed by Cursor Bugbot for commit 4cb5d1d. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions

github-actions Bot commented May 22, 2026 •

Copy link
Copy Markdown

Test Results

  203 files  ±0    203 suites  ±0   9m 45s ⏱️ -2s
7 767 tests ±0  7 705 ✅ ±0  62 💤 ±0  0 ❌ ±0 
7 787 runs  ±0  7 725 ✅ ±0  62 💤 ±0  0 ❌ ±0 

Results for commit 4cb5d1d. ± Comparison against base commit eaf9f48.

♻️ This comment has been updated with latest results.

@jit-ci

jit-ci Bot commented May 22, 2026 •

Copy link
Copy Markdown

🛡️ Jit Security Scan Results

CRITICAL HIGH MEDIUM

✅ No security findings were detected in this PR


Security scan by Jit

@atakavci atakavci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@ggivo
ggivo force-pushed the topic/ggivo/ts-multi-aggreagtion-singlevalue-arr-size branch from 83c53ee to 919056e Compare May 22, 2026 17:04
@ggivo ggivo changed the title TimeSeries: use singletonList for single-value TSElement (follow-up to #4504) TimeSeries: reduce overhead on single-aggregator TSElement path (follow-up to #4504) May 22, 2026

@atakavci atakavci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just one comment with the new type..

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit accd411. Configure here.

@ggivo
ggivo requested a review from atakavci May 26, 2026 06:46

@atakavci atakavci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@ggivo
ggivo merged commit 1a0b77e into master May 26, 2026
33 of 36 checks passed
@ggivo
ggivo deleted the topic/ggivo/ts-multi-aggreagtion-singlevalue-arr-size branch May 26, 2026 10:34
@ggivo ggivo added the feature label May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants