Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opportunity for performance gains via d3-force-reuse? #226

Open
Nantris opened this issue Jan 9, 2024 · 1 comment
Open

Opportunity for performance gains via d3-force-reuse? #226

Nantris opened this issue Jan 9, 2024 · 1 comment

Comments

@Nantris
Copy link

Nantris commented Jan 9, 2024

Is it possible that the code in this repo might still bring performance advantages, and is there any interest in integrating it into d3-force?

https://github.com/twosixlabs/d3-force-reuse

@loleg
Copy link

loleg commented Dec 28, 2024

First, I would ask what the most compelling reason today would be to improve performance of this library - i.e. which use cases demand it, which are not better served by other force-directed graphs (e.g. PIXI.js, THREE.js)?

Second, I would check how the "reuse" approach stands in comparison to others, like making the situation more parallel using workers as suggested in #112 and demonstrated by @dileban/nbody-simulation. The other day, an excellent overview of n-body algorithms was posted in Efficient Numerical Methods for N-Body Simulations with Modern Computational Techniques by Nayer Sharar.

Finally, I would suggest investing a bit of effort into further testing the d3-force-reuse library, making sure there are no edge cases that are affected by this technique. If the improvements are reliable, it should be the default method.

The question of merging was also raised in twosixlabs/d3-force-reuse#2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants