Code Monkey home page Code Monkey logo

Comments (4)

naqvitalha avatar naqvitalha commented on May 28, 2024 2

You layout looks deterministic to me. All items seem to be of fixed size. In any case, non deterministic shouldn't be much slower. There could be three things which are wrong:

  1. Estimates dimensions are nowhere near the actual ones. This seems to be the case since your deterministic render looks way different.
  2. Missing shouldComponentUpdate in your component which the rowRenderer returns. Very important for non deterministic scenario.
  3. rowHasChanged in dataProvider has an invalid check that returns true most of the time. Most likely this is not the problem since deterministic mode is fast for you.

from recyclerlistview.

hasan642 avatar hasan642 commented on May 28, 2024

please clarify, what is role of shouldComponentUpdate, rowRender, and rowHasChanged in performance of RecyclerView?
again, thank you very much

from recyclerlistview.

naqvitalha avatar naqvitalha commented on May 28, 2024

In case of non deterministic rendering RecyclerListView will render a few times for than regular. These cycles are to reposition items after actual render. Since the whole tree will re-render with the listview rowHasChanged and shouldComponentUpdate make sure that your items don't. RecyclerListViews self render is pretty cheap. Having these checks prevents your item from being rendered unnecessarily which significantly reduces JS overhead.

from recyclerlistview.

naqvitalha avatar naqvitalha commented on May 28, 2024

Inactive for a while. Closing.

from recyclerlistview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.