Skip to content

perf(tooltip-plugin): limit amount of items when hover with mouse#9966

Closed
H4ad wants to merge 1 commit intoSigNoz:mainfrom
H4ad:perf/reduce-legends-on-model-v2
Closed

perf(tooltip-plugin): limit amount of items when hover with mouse#9966
H4ad wants to merge 1 commit intoSigNoz:mainfrom
H4ad:perf/reduce-legends-on-model-v2

Conversation

@H4ad
Copy link
Copy Markdown
Contributor

@H4ad H4ad commented Jan 10, 2026

📄 Summary

Opened just to discuss a little bit, there's any need to render all the legends when you can only see the first one's since you can't scroll in that dialog?

Related #9784


Note

Caps tooltip content to the first 20 entries.

  • Adds MAX_TOOLTIP_ITEMS = 20 and limits the render loop to Math.min(sortedValues.length, MAX_TOOLTIP_ITEMS) in tooltipPlugin.ts.

Written by Cursor Bugbot for commit 8c60e8b. This will update automatically on new commits. Configure here.

@H4ad H4ad requested a review from a team as a code owner January 10, 2026 03:08
@YounixM YounixM requested a review from ahrefabhi February 20, 2026 12:42
@ahrefabhi
Copy link
Copy Markdown
Contributor

Closing this PR @H4ad, we've made the tooltip items virtualised.

@ahrefabhi ahrefabhi closed this Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants