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

Investigate debounce time #4377

Open
louispt1 opened this issue Dec 11, 2024 · 1 comment
Open

Investigate debounce time #4377

louispt1 opened this issue Dec 11, 2024 · 1 comment
Assignees

Comments

@louispt1
Copy link
Contributor

We should investigate the debounce time for sending requests to the API. A longer debounce time could improve efficiency by batching multiple changes into a single request, reducing the number of calls made to the Engine. However, this comes at the cost of increased delay for processing single-input updates.

The goal is to find the optimal debounce time that:
1. Reduces excessive API calls when users make multiple updates in quick succession.
2. Minimizes delay to ensure a responsive experience for users who are updating a single input at a time.

Key Questions:
• How frequently are users likely to make quick successive updates, and how quick will they be?
• What is the perceived acceptable delay for users between input and response?

@louispt1 louispt1 self-assigned this Dec 11, 2024
@mabijkerk
Copy link
Member

In addition to debounce, we could investigate other options to smoothen the interaction of the user with the interface. Suggestions:

  • Adding a "calculate" button, disabling it will allow the user to set sliders with the model running the calculations
  • Re-calculations seems to be triggered by new charts (and slider changes of course), though sometimes users only want to set a new slider, without having to see the new slide. Perhaps something smart can be done here

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

No branches or pull requests

2 participants