Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-41099

QML should be better at releasing virtual memory to the OS

    XMLWordPrintable

Details

    Description

      When switching models in a ListView then not all the memory is reclaimed. In the attached example, clicking on the view will set it to be a much smaller model. Checking the memory usage in task manager it will only go down to 100mb from 400mb. Clicking again will call gc() a second time and this will claim another 10mb. However starting with the smaller model will only use about 30mb in total, therefore they seems to be a leak of about 80mb due to the number of items used.

      Attachments

        1. main.qml
          2 kB
          Andy Shaw

        Issue Links

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              andysh Andy Shaw
              Votes:
              7 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated: