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

Rewrite the implementation of the linked list for JobSupport #4095

Draft
wants to merge 4 commits into
base: dk-remove-dcss-2
Choose a base branch
from

Conversation

dkhalanskyjb
Copy link
Collaborator

Fixes #3886

One of the steps for #3887

A draft because

  • it's undertested
  • and underdocumented,
  • it approximately doubles the memory consumption of JobSupport.

@dkhalanskyjb
Copy link
Collaborator Author

@qwwdfsad, could you help with optimizing the memory consumption? Not requesting a proper review yet because I know already the code is messy, I just expect it to get even messier during memory consumption optimization.

With this change, `JobSupport` uses only a small and well-defined
portion of the functionality `LockFreeLinkedList` provides, which
makes it easier to replace the list implementation.
In exchange, now, removal is linear in the size of number of
registered handlers instead of being amortized constant.
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

1 participant