Skip to content

perf: Improved performance of LineChart calculating touched spots#2101

Open
PvtPuddles wants to merge 1 commit into
imaNNeo:mainfrom
PvtPuddles:fix-excessive-list-allocation
Open

perf: Improved performance of LineChart calculating touched spots#2101
PvtPuddles wants to merge 1 commit into
imaNNeo:mainfrom
PvtPuddles:fix-excessive-list-allocation

Conversation

@PvtPuddles
Copy link
Copy Markdown

Description

Removed excessive list allocation in LineChartPainter.getNearestTouchedSpot.

Checklist

  • I have followed the Contributor Guide when preparing my PR.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation and added dartdoc comments with ///.
  • I have updated/added relevant examples in example.

Breaking Change?

  • Yes, this PR is a breaking change.
  • No, this PR is not a breaking change.

Related Issues

Closes #2100

@PvtPuddles PvtPuddles changed the title Perf: Improved performance of LineChart calculating touched spots perf: Improved performance of LineChart calculating touched spots May 15, 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.

Get Nearest Touched Spot Slow for Large Datasets

1 participant