xamarin/Xamarin.Forms

Android/UWP ListView Memory Leak

Open

#5,451 opened on Mar 5, 2019

 (5 comments) (2 reactions) (0 assignees)C# (1,926 forks)batch import
a/listviewa/performancee/7 :clock7:help wantedp/Androidp/UWPt/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Description

When updating ItemsSource for ListView cell views remains in memory both on Android(not so fast) and UWP(rapidly)

Steps to Reproduce

  1. Run sample app in Android/UWP
  2. Click a few times on any item
  3. Check debug output or diagnostic on UWM

Expected Behavior

Cell Views GC

Actual Behavior

Cells grow in memory

Sample Project: ListViewMemory.zip

Contributor guide