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

subscriber: allow to customize Registry with sharded_slab Config. #2421

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

Conversation

arssher
Copy link

@arssher arssher commented Dec 19, 2022

Adds CollectionBuilder with_slab_config::<S>() func to this end. This e.g. allows to use tracing in environment with >= 4k threads.

c.f. #1485

Motivation

Allow to use tracing with more than 4k threads and generally customize underlying sharded_slab.

Solution

Add one more type parameter to relevent structures and provide with_slab_config for easy configuration.

@arssher arssher requested review from hawkw, davidbarsky and a team as code owners December 19, 2022 19:52
@arssher
Copy link
Author

arssher commented Dec 19, 2022

I can also port to v0.1.x branch, if v0.2 is not planned soon.

@davidbarsky
Copy link
Member

I'll review this in a minute, but please keep this branch pointed at 0.2.

Adds CollectionBuilder with_slab_config::<S>() func to this end. This e.g.
allows to use tracing in environment with >= 4k threads.

c.f. tokio-rs#1485
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