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

Optimize event dispatching #949

Merged
merged 1 commit into from
Jul 7, 2024
Merged

Optimize event dispatching #949

merged 1 commit into from
Jul 7, 2024

Conversation

dalyIsaac
Copy link
Owner

@dalyIsaac dalyIsaac commented Jul 7, 2024

This PR reduces the amount of event dispatches being enqueued onto the STA thread. Previously, it was possible to have the STA thread execute >80 callbacks queued and for them all to execute within 300ms.

This is related to #941.

@dalyIsaac dalyIsaac added bug Something isn't working core Whim labels Jul 7, 2024
Copy link

codecov bot commented Jul 7, 2024

Codecov Report

Attention: Patch coverage is 80.00000% with 4 lines in your changes missing coverage. Please review.

Project coverage is 80.92%. Comparing base (40d0486) to head (78d4788).

Files Patch % Lines
src/Whim/Store/RootSector/MutableRootSector.cs 77.77% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #949      +/-   ##
==========================================
- Coverage   80.94%   80.92%   -0.02%     
==========================================
  Files         272      272              
  Lines       11423    11434      +11     
  Branches     1277     1278       +1     
==========================================
+ Hits         9246     9253       +7     
- Misses       2005     2008       +3     
- Partials      172      173       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dalyIsaac dalyIsaac marked this pull request as ready for review July 7, 2024 04:13
@dalyIsaac dalyIsaac merged commit b50e7c3 into main Jul 7, 2024
9 of 10 checks passed
@dalyIsaac dalyIsaac deleted the reduce-tryenqueue-calls branch July 7, 2024 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working core Whim
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant