Conversation
This was referenced Oct 1, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Charts copied their entire history on every incoming message just to check it existed and to count points, so the longer a chart got, the slower every update became. This removes those copies. Nothing changes in what charts store or show.
Performance
The store work each chart message does is 95–98% lower. Measured on a chart with 4 lines of 1000 points receiving 16 messages a second (median of 7 runs):
At 16 messages a second that is about 82 ms of store work every second down to 4 ms when limited by points, and 39 ms down to under 1 ms when limited by time. The rest of the chart's per-message work is unchanged.
Test plan
hasandkeepLatestPerTopicmake nocloneMessagecallskeepLatestPerTopickeeps the newest N per topic in order, treats a missing topic as one series, leaves the series alone under the limit, and ignores a widget holding a single messagegetstill returns a copyui_chartlogic on 5,000 random series, including missing, empty and numeric topicsRelated Issue(s)
Closes #2269
Checklist
flowforge.yml?FlowFuse/helmto update ConfigMap TemplateFlowFuse/CloudProjectto update values for Staging/ProductionLabels
area:migrationlabel