Skip to content

Add Progress throttling #4

@tapava

Description

@tapava

Add optional progressThrottle option to prevent state flooding when compute functions fire progress updates in tight loops. Should throttle/debounce progress callbacks to avoid choking the main thread with re-renders.

  • Add progressThrottle?: number option (ms) to ComputeOptions
  • Throttle onProgress calls in the React hook
  • Consider both throttle (regular intervals) and debounce (wait for pause) strategies

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions