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

Move blocking random key generation to executor thread #666

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Arooba-git
Copy link

Thank you for the effort for this handy project!

This is a minor fix pertaining to a blocking call in KeyCommandsTests class as detected by BlockHound:
eg-blocking

Of course the method is just used in the test cases but since this is the official examples repository, I think the fix could set a good example for how we should try to avoid blocking calls in reactive apps wherever possible, to keep the pipeline reactive end to end. :)

We re-ran the test cases and also evaluated the performance (in terms of latency) before and after the fix

Parking duration of main thread before fix
eg-latency-after

After
eg-latency-before

@Arooba-git
Copy link
Author

bump

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants