Skip to content

Execute blocking UUID generation on executor thread#1111

Merged
hantsy merged 2 commits into
hantsy:masterfrom
Arooba-git:fix-blocking-call-in-websocket
Jul 25, 2023
Merged

Execute blocking UUID generation on executor thread#1111
hantsy merged 2 commits into
hantsy:masterfrom
Arooba-git:fix-blocking-call-in-websocket

Conversation

@Arooba-git

Copy link
Copy Markdown
Contributor

Hi! 🙂

Thank you for this handy project. You did a great job in ensuring the reactive pipeline indeed remains reactive end to end to show case the full efficacy of reactive programming.

There is one blocking call , however, in MessageHandler class in websocket module, as detected by BlockHound:

srs2-blocking

This PR fixes the blocking code. We re-ran the tests and also compared the performance (in terms of main thread latency) before and after the fix:

Before
sr2-latency-before

After
sr2-latency-after

@hantsy
hantsy merged commit 14f5a5c into hantsy:master Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants