Skip to content

Use PooledContextFactory #34

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

Closed
wants to merge 16 commits into from

Conversation

benaadams
Copy link
Contributor

Also needs aspnet/HttpAbstractions#501 to work

Took out SupportsSendFile as it doesn't exist anymore

/cc @DamianEdwards

@dnfclas
Copy link

dnfclas commented Dec 6, 2015

Hi @benaadams, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!

The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.

TTYL, DNFBOT;

@benaadams
Copy link
Contributor Author

Usual stuff, 4k requests, 16 pipelined, using FF

Pre-allocations for DefaultContext 1.12MB

before-allocs

Post-allocations for DefaultContext 160KB

after-allocs

Almost all of which is logging scope

before-allocs

Not quite sure what's going on with ThreadStatic, but don't use it much - take the locks out and it goes a bit weird.

@AspNetSmurfLab
Copy link
Contributor

Mixed results with this. For non-pipelined tests it seems to improve things, but for pipelined tests it makes this much worse (~10% drop in RPS).

@rynowak
Copy link
Member

rynowak commented Dec 9, 2015

Sounds like contention yo

@benaadams
Copy link
Contributor Author

Rookie mistake - didn't actually make the ThreadStatic static

@benaadams benaadams force-pushed the pooled-context-factory branch from d2235b9 to b9728d4 Compare December 10, 2015 18:54
@DamianEdwards
Copy link
Member

@benaadams would you mind rebasing this so we can re-measure pls?

@benaadams benaadams force-pushed the pooled-context-factory branch from b9728d4 to 82395c6 Compare January 27, 2016 00:27
@benaadams
Copy link
Contributor Author

O_o did I rebase on wrong thing?

@benaadams benaadams force-pushed the pooled-context-factory branch from 82395c6 to 648217f Compare January 27, 2016 00:32
@benaadams benaadams mentioned this pull request Jan 27, 2016
@benaadams
Copy link
Contributor Author

Submitted new PR #49

@benaadams benaadams closed this Jan 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants