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.

I have a list with about 100 items . when I scroll I see blank area for 0.5 second

I try your sample with last version of react native

It has not same performance like your YouTube and I see blank area . I test at release mode in android 7 phone with 8 core CPU and 8 gig ram

Also in your sample except image all data is same and not changed so we have no cha he in view except images . If you try with better data and each row has different price and … , the performance decreases and we have more blank area

I also increase renderAheadOffset to 320 and 640 but still see blank area even in your sample project

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:20

github_iconTop GitHub Comments

4reactions
naqvitalhacommented, Dec 28, 2017

@Barylskyigb @sellmeadog Most of the research that we have done around this reveals some irrefutable findings:

  1. Scrolling on fastest speed on iOS can show blanks, kind of where you’ve been building momentum on top of a very large list like the one in sample. Even on iPhone X it happens, although things catch up in few milliseconds. JS thread overhead of RecyclerListView is much lower than that of FlatList, it happens regardless.
  2. Blanks on Android are totally avoidable if your component is well optimized. Our production Flipkart app proves that (grocery mainly). Effort on optimizing component will always be needed. That is true for native RecyclerView as well where you would drop frames instead.
  3. FlatList creates/destroys elements at a very fast rate. The main reason you may see less blanks is because it starts to drop frames much before you see blanks. Those frame drops slow down the scroll. Also, FlatList renders too many items upfront, you can mimic the same using renderAheadOffset prop in RecyclerListView. Default is just 250 px. Increasing this will improve things for sure but your max memory usage also increases and time for recycling to kick in increases. If you profile memory and fps you’d see RecyclerListView beating FlatList consistently.

The goal for RecyclerListView was to improve main thread performance, reduce garbage collection events and to enable custom layout managers (like masonry etc). With minor tweaking you can easily outperform FlatList in most cases.

1reaction
mostafabrazicommented, Dec 20, 2020

Any news here? don’t know why it’s closed

Read more comments on GitHub >

github_iconTop Results From Across the Web

Blank space - Wikipedia
Space (punctuation), a blank area devoid of content used to separate characters in writing · "Blank Space", a song by Taylor Swift ·...
Read more >
Blank space - The Free Dictionary
1. blank space - a blank area; "write your name in the space provided". space, place.
Read more >
blank area Definition - Law Insider
blank area means any piece of land (not being under cultivation) measuring one-half of an hectare or more, which has five or less...
Read more >
Blank space definition and meaning | Collins English Dictionary
Blank space definition: Something that is blank has nothing on it. [...] | Meaning, pronunciation, translations and examples.
Read more >
Blank Space - Urban Dictionary
Blank Space · 1. Nothingness, nonexistence, unreality. · 2. The state of your fridge. · 3. The antithesis of any surface area in...
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