Skip to content

Commit

Permalink
Simplify line assignment in CoreLineSeries class
Browse files Browse the repository at this point in the history
Removed unnecessary .ToArray() call in line assignment within the
CoreLineSeries class. This change avoids creating an array,
potentially improving performance and allowing the data to be
handled in its original enumerable or collection form.
  • Loading branch information
beto-rodriguez committed Oct 16, 2024
1 parent 7661a07 commit 7383eb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LiveChartsCore/CoreLineSeries.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public override void Invalidate(Chart<TDrawingContext> chart)
var isSegmentEmpty = true;
VectorManager<CubicBezierSegment, TDrawingContext>? strokeVector = null, fillVector = null;

var line = GetSpline(segment, stacker).ToArray();
var line = GetSpline(segment, stacker);

foreach (var data in line)
{
Expand Down

0 comments on commit 7383eb1

Please sign in to comment.