GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — TimeSeries: reduce overhead on single-aggregator TSElement path (follow-up to #4504) by ggivo · Pull Request #4537 · redis/jedis

Conversation

@ggivo

@ggivo ggivo commented May 22, 2026 •
edited by cursor Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ggivo
TimeSeries: use singletonList for single-value TSElement (follow-up to …
1c88efa
…#4504)
cursor[bot]
cursor Bot reviewed May 22, 2026
View reviewed changes
Comment thread src/main/java/redis/clients/jedis/timeseries/TSElement.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented May 22, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jit-ci

jit-ci Bot commented May 22, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

🛡️ Jit Security Scan Results

CRITICAL HIGH MEDIUM

✅ No security findings were detected in this PR


Security scan by Jit
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ggivo
unused import
9e033bf
atakavci
atakavci approved these changes May 22, 2026
View reviewed changes

@atakavci atakavci left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
ggivo added 2 commits May 22, 2026 18:24
@ggivo
Merge branch 'master' into topic/ggivo/ts-multi-aggreagtion-singleval…
d36e723
…ue-arr-size
@ggivo
TimeSeries: reduce overhead on single-aggregator TSElement path (foll…
919056e
…ow-up to #4504)
@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 reviewed May 25, 2026
View reviewed changes

@atakavci atakavci left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

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..

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/main/java/redis/clients/jedis/timeseries/TSElement.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@ggivo
TSElement: make equals symmetric across MultiValueTSElement when valu…
accd411
…es match
cursor[bot]
cursor Bot reviewed May 25, 2026
View reviewed changes

@cursor cursor Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/main/java/redis/clients/jedis/timeseries/TSElement.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@ggivo
typo
f00cc70
atakavci
atakavci requested changes May 25, 2026
View reviewed changes
Comment thread src/main/java/redis/clients/jedis/timeseries/TSElement.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@ggivo
address review comments - equals/hashcode consistency;
62b460f
@ggivo
ggivo requested a review from atakavci May 26, 2026 06:46
@atakavci
Merge branch 'master' into topic/ggivo/ts-multi-aggreagtion-singleval…
4cb5d1d
…ue-arr-size
atakavci
atakavci approved these changes May 26, 2026
View reviewed changes

@atakavci atakavci left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ggivo
ggivo merged commit 1a0b77e into master May 26, 2026
33 of 36 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@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

Reviewers

@atakavci atakavci atakavci approved these changes
+1 more reviewer
@cursor cursor[bot] cursor[bot] left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

feature

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@ggivo @atakavci
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.