matrix-org / matrix-org/pinecone

Sim Feature: Can start/stop the graph sim from running

Open
#27 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement simulator
Dominant language
Go
Stars
486
Forks
37
PR merge metrics
No merged PRs in 30d

Description

The visjs graph can consume a lot of processor time when simulating large networks. This results in two potentially undesirable behaviours.
1. simulation state update messages taking longer to be processed as they are received
2. processor usage gets really high

It would be beneficial to be able to "pause" the visjs simulation. This would greatly reduce the processing currently happening and allows the sim ui to quickly process new updates. Visjs already has this ability in the API, the sim just needs some added UI and to have it hooked up.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the sim UI and its visjs simulation setup, then read the existing update flow and visjs pause/resume API. Add the UI control and connect it to starting and stopping the simulation; done when pausing reduces simulation work while updates remain responsive and resuming restarts it.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.