SwiftUIListSeparator icon indicating copy to clipboard operation
SwiftUIListSeparator copied to clipboard

Improve CPU/Memory Utilization

Open SchmidtyApps opened this issue 4 years ago • 0 comments

Describe the bug The current solution redraws on every scrollview contentOffset update which temporarily spikes CPU usage while scrolling. Custom divider lines are also redrawn more than once causing an unnecessary memory footprint increase.

To Reproduce Steps to reproduce the behavior:

  1. Scroll a long list up and down repetitively while monitoring CPU/Memory usage

Expected behavior The CPU/Memory usage while currently reasonable should be dramatically improved by limiting redraw cycles

SchmidtyApps avatar Sep 20 '20 15:09 SchmidtyApps