Skip to content

Weird performance issue (CPU > 100%) until manual rebuild #202

Description

@nashfive

Hi,
I have a strange performance issue on my app on both simulators (iOS and Android). I am displaying 6 times the same image from the network. Images are not big and they load quite fast.

The CPU usage of the app (Runner.app & qemu-system-i386) goes up and stay at at least 100% CPU and the usage stays like this forever.

My app has a refresh (reloads a JSON than trigger a rebuild of my list with the 6 items) and when I hit the refresh, the CPU goes back to normal (around 0.5-2%).

I tried a simple test by replacing the CachedNetworkImage with a simple Placeholder widget, I don't have this issue at all.
As soon as I replace it back with a CachedNetworkImage wdiget, I get the high CPU usage until I do a refresh, and then it all goes smoothly.

I am using cached_network: ^1.0.0 version with Flutter stable 1.7.8.

Any idea what could produce this ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions