question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Curious your thoughts on memory usage vs RN's <Image />

See original GitHub issue

Hey so my app loads a lot of images remotely, and allows users to take photos and upload them. I see a fair number of memory related issues in my app as a result. Particularly my API doesn’t thumbnail any images so remote images load in as large images and from what I can tell from RN’s <Image /> is that it’s not giving me a ton of support in downsampling. Thus lots of crashes.

I’m curious your evaluation on what RN’s <Image /> is doing on iOS and Android to help with local and remote image in regards to memory / disk consumption. And how this differs from react-native-fast-image (and the underlying Glide / SDWebImage)

Any insight would be very helpful, thank you!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:15
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
kevinresolcommented, Dec 5, 2017

I can confirm the memory issue. I have a FlatList with FastImage, at any time there will be 9 - 12 images visible (a 3 column by 3 row layout). The memory usage (as seen in xcode) shoots up to 600MB and the app crashes. This happens when I scroll the list down to around the 100th image.

As a reference, when using standard RN Image, the memory usage is ~90MB max even scrolling pass the 100th image.

5reactions
bitshadowcommented, Feb 10, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

Exploring the MIND of a Visual Thinker - YouTube
Exploring the MIND of a Visual Thinker: Thinking in Photo Realistic Images (2007)Presented by Temple Grandin, Ph.D.Recorded for the UC Davis ...
Read more >
The Amber of Our Thoughts | Brandeis Magazine
The basics of memory storage are fairly easy to grasp, at least the way neuroscientist Shantanu Jadhav describes them. At a fundamental level,...
Read more >
This new device can visualize your thoughts (sort of)
Researchers have been able to sketch out people's thoughts simply by scanning their brains.
Read more >
Curiosity Changes the Brain to Boost Learning and Memory
Curiosity could be used to help shore-up damaged reward circuits, or the reward circuit could be stimulated directly to give memory a boost....
Read more >
The psychology and neuroscience of curiosity - PMC - NCBI
As a consequence, much research that is directly relevant to the problem of curiosity does not use the term curiosity and instead focuses...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found