Skip to content

App freeze when reducing queue from big (2000) to small (20) #2563

@u2gilles

Description

@u2gilles

Using RNTP v5.0, when I reduce the queue from 2,000 elements down to 20, my podcast app freezes for several minutes and triggers multiple ANRs on Android.

The issue seems to be removeIndexes, which is extremely slow. Interestingly, there is no performance issue when going from 20 to 2,000 tracks using addTracks.

I cannot use reset() , load() or setQueue() as workarounds because they cause audio interruptions, which is a poor user experience for a podcast app.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions