posit-dev / posit-dev/shinylive

Maximum message rate seems to be low

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

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
251
Forks
25
Avg merge
19m
Merged PRs (30d)
2

Description

I was testing a new slider component in Shiny for Python and in Shinylive, and I found that I seem to be hitting a limit on how quickly messages can be sent to and from the "server" in Shinylive.

This is a slider with debouncing disabled. My mouse is sending events at (I think) 60Hz. With regular Shiny (not Shinylive), the response is instantaneous:

https://github.com/rstudio/shinylive/assets/86978/60cf4235-4745-4cae-aa78-d183cbec6b67

However, on Shinylive, it seems to hit a limit, and the slider seems to be updating at a slower speed than the mouse events, maybe 30Hz.

https://github.com/rstudio/shinylive/assets/86978/208d5ca7-6379-4212-b8a6-3e86e6966b99

Contributor guide

No contributing guide indexed for this repository

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

Reproduce the slider test in Shinylive with debouncing disabled and compare it with regular Shiny, using the linked recordings as the behavioral reference. Trace the browser-to-server message path and measure its rate; done means identifying why Shinylive updates around 30Hz instead of keeping up with the reported 60Hz mouse events.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, typescript
Domain
networking, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.