Giter Club home page Giter Club logo

Comments (3)

jacomyal avatar jacomyal commented on June 2, 2024
  1. Good point. I actually just realized that the first thing I do in most my reducers is cloning... I will document this in the new v3's doc.
  2. Interesting - are you sure it's faster on all most used browsers? If we're sure it's always faster, we can update it.

from sigma.js.

TGOlson avatar TGOlson commented on June 2, 2024

Sweet! re: #2, I am pretty sure it's faster in most cases (it seems like in general just avoiding the overhead of a function call is pretty performant), but tbh I'm seeing some conflicting info about exactly how much of a performance improvement it is in a real world scenario.

It sounds like node/some browsers do a lot of aggressive caching with the spread operator which might impact the results of something like a jsperf test in an unrealistic way.

Anyways, I suspect it would make things faster but don't feel quite informed enough to push super hard either way! For v3 you could even provide an option while creating the reducer to skip cloning if people don't want/need it.

But either way I'm happy with it how it all worked out for me and will leave you all to decide what works best for Sigma, thanks again for all the great work here : )

from sigma.js.

stale avatar stale commented on June 2, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from sigma.js.

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.