Improve performance #182

Closed
opened 2026-04-09 20:08:47 +00:00 by hodlbod · 4 comments
Owner

Run some profiling and figure out quick wins for improving performance. This might include:

  • Putting less stuff in storage
  • Putting less stuff in the repository (see welshman/app/index for the current logic)
  • Doing less/more debouncing

The main bottleneck seems to be GC pressure, which means memory is the problem, not computation. This might come from using too many timers, or from storing too many events in memory. One strategy I have in mind is to set up a separate repository per space so we don't have to constantly reconcile tracker and repository when deriving events for a particular url.

Solutions should not compromise simplicity and maintainability. It would be easy to make a mess fixing this, but long term I want to swap out the underlying libraries which should solve this at a more fundamental level. This issue may have multiple assignees and multiple PRs with different solutions.

Run some profiling and figure out quick wins for improving performance. This might include: - Putting less stuff in storage - Putting less stuff in the repository (see welshman/app/index for the current logic) - Doing less/more debouncing The main bottleneck seems to be GC pressure, which means memory is the problem, not computation. This might come from using too many timers, or from storing too many events in memory. One strategy I have in mind is to set up a separate repository per space so we don't have to constantly reconcile tracker and repository when deriving events for a particular url. Solutions should not compromise simplicity and maintainability. It would be easy to make a mess fixing this, but long term I want to swap out the underlying libraries which should solve this at a more fundamental level. This issue may have multiple assignees and multiple PRs with different solutions.
hodlbod added this to the Current milestone 2026-04-09 20:08:47 +00:00
hodlbod added the dev label 2026-04-09 20:08:47 +00:00
Contributor

hii @hodlbod can I work on this issue

hii @hodlbod can I work on this issue
Author
Owner

Please do

Please do
priyanshu_bharti was assigned by hodlbod 2026-04-09 20:17:58 +00:00
Collaborator

Hey @priyanshu_bharti, if you face any issues (or) just need any help, I would be happy to take this on.

Hey @priyanshu_bharti, if you face any issues (or) just need any help, I would be happy to take this on.
Contributor

Let's treat this as a tracking issue for sub-issues working towards optimizations in different parts?

Let's treat this as a tracking issue for sub-issues working towards optimizations in different parts?
priyanshu_bharti was unassigned by hodlbod 2026-04-09 21:40:09 +00:00
hodlbod referenced this issue from a commit 2026-04-10 17:40:22 +00:00
Sign in to join this conversation.
4 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: coracle/flotilla#182