Giter VIP home page Giter VIP logo

Comments (2)

ged-odoo avatar ged-odoo commented on August 15, 2024

Check https://medium.com/@localvoid/how-to-win-in-web-framework-benchmarks-8bc31af76ce7 for a discussion about virtual dom performance

from owl.

ged-odoo avatar ged-odoo commented on August 15, 2024

Ok, this is interesting. A lot of the lost time was spent in the updateProps method. This mean that when we add 10k new widgets, OWL actually update the props of all other previous widgets, which causes a rerender. Implementing shouldUpdate in the Message component to return false make a big difference: 1694ms, 1970ms, 1901ms, 3093ms

Vue does not have the issue because it tracks of each component that needs to be rerendered, so it simply does nothing about the previous widgets, and React solves the issue by being extremely fast. It actually rerenders the previous widgets, but I suspect that its virtual dom is highly optimized, and uses object pooling to prevent useless allocations, and is in general quite efficient.

So, I consider this issue closed, Owl performance is actually pretty decent, especially considering that not much work was done on the optimization part.

from owl.

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.