Skip to content

Replace Thread.Sleep with task.Delay #7427

Open
@alekhyareddy28

Description

Performance Improvement of PT Run

Similar to PR #7401, replacing Thread.Sleep with Task.Delay throughout the codebase would improve the performance of PT Run as Thread.Sleep blocks the thread that it is called on whereas Task.Delay uses a timer instead and schedules a thread to resume work after the interval has passed. This does not block the thread.

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

    Labels

    Area-QualityStability, Performance, Etc.Area-Testsissues that relate to testsCost-SmallSmall work item - 0-8 hours of workHelp WantedWe encourage anyone to jump in on these and submit a PR.Product-Color PickerAll things around the Color Picker utilityProduct-PowerToys RunImproved app launch PT Run (Win+R) Window

    Type

    No type

    Projects

    • Status

      ⚠️Needs Walkthrough

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions