Comments (3)
- 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.
- 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.
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.
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)
- v3.0.0-beta.10: Package.json module (esm) export "./rendering" incomplete HOT 3
- Node scaling issue on MacOS with NodeBorderProgram and NodePointProgram HOT 8
- NodeCircleProgram is buggy on Chrome mobile
- @sigma/edge-curve is buggy on Chrome mobile
- How do I do custom shapes? HOT 1
- Create a snapshot of "sigma-containter" HOT 1
- Questions about the use of the sigma HOT 1
- The error of edge reduce HOT 3
- Optimizing Zoom Functionality for Scalable Graphics HOT 3
- CDN release for latest version HOT 4
- Sigma with VueJs HOT 2
- Utility functions not available when loading sigma statically via cdn HOT 1
- Add Kenelyze to the In The Wild section
- Changing programs with `setSetting` has no effect HOT 1
- Height and width for images in nodes HOT 2
- Angular: update from 2.4 to sigma 3.0 beta, cannot find type declarations error during compile HOT 4
- Opacity for edges HOT 4
- Combined (border+image) Program Node Rendering Issue HOT 1
- Can't set Edge Size Smaller than 1 in 2.4.0 HOT 2
- How to render self-loops?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sigma.js.