Skip to content

Optimize Refresh Call Frequency in Long Running Processes #95

Description

@hamidmayeli

When running a lightweight process that repeats a large number of times (e.g., 1 million iterations), setting the maximum count to 1 million and calling Next on each iteration significantly slows down the process. This is especially noticeable compared to calling Next once after every 10,000 iterations.

To improve performance, could we implement a built-in mechanism to cache the current percentage of progress? The idea would be to only call Refresh within the Next method when the percentage has actually changed. This optimization would reduce unnecessary updates and potentially improve efficiency for processes with high iteration counts.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions