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

Create a sequential dispatcher for each request and response #170

Open
wants to merge 1 commit into
base: series/0.23
Choose a base branch
from

Conversation

rossabaker
Copy link
Member

This tests the theory of #157 that a sequential dispatcher will help performance.

I thought request and response could share, but creating the request and response on a compute thread rather than the servlet thread results in null path infos being passed to the HTTP app in the tests. This creates the dispatcher for the bodies, where we already have effects.

@rossabaker
Copy link
Member Author

I don't have a performance test harness for this backend. Perhaps @bastewart or @TimWSpence could give it a try?

@rossabaker
Copy link
Member Author

rossabaker commented Jan 24, 2023

It's 0.23.13-3-ad7196e-20230124T051427Z-SNAPSHOT in Maven Central snapshots.

@rossabaker
Copy link
Member Author

Also, the diff is mostly whitespace.

@TimWSpence
Copy link

I don't have a performance test harness for this backend. Perhaps @bastewart or @TimWSpence could give it a try?

Thanks Ross! Just linked this to #171 which includes some initial benchmarks at least. I haven't included results from using a parallel dispatcher but can do if that's helpful. Parallel is noticeably slower (and possibly not correct unless I've missed something?)

@rossabaker
Copy link
Member Author

Parallel is definitely incorrect. See #172.

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.

None yet

2 participants