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

Reduce mpsc padding #96

Merged
merged 2 commits into from
Jan 12, 2020
Merged

Reduce mpsc padding #96

merged 2 commits into from
Jan 12, 2020

Conversation

mratsim
Copy link
Owner

@mratsim mratsim commented Jan 12, 2020

This addresses part of #93, reducing the MPSC padding so that the data structure fits in 192 bytes leaving enough space for it to be used intrusively in memory pool allocated data structure like pledges.

Unfortunately the {.align.} pragma for generics is actually not applied so MPSC Channel is not padded.
This means that currently cache conflicts between threads are high and performance will be increased (especially on the steal requests overhead front), but it may also cause size issues in the future.

See upstream: nim-lang/Nim#13122

@mratsim
Copy link
Owner Author

mratsim commented Jan 12, 2020

Issue #97 raised for the unrelated Appveyor Linux 32-bit failure and Travis Linux 64-bit failure

@mratsim mratsim merged commit a6e06bf into master Jan 12, 2020
@mratsim mratsim deleted the reduce-mpsc-padding branch January 12, 2020 22:19
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.

1 participant