perf(sync): Avoid ActionDisposableWrapper allocation by storing List<object> in DiContainerDisposer
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
Research direction
Read ManualDi.Sync/ManualDi.Sync/Container/DiContainerDisposer.cs, especially QueueDispose(Action) around line 31, then compare the disposal logic with the matching implementation in ManualDi.Async. Change the sync disposer to store List<object> and handle IDisposable and Action during Dispose(). Done when wrapper allocations are removed and disposal still handles both item types.
Written by the indexing model from the issue text.
Description
Summary
In ManualDi.Sync/ManualDi.Sync/Container/DiContainerDisposer.cs (line 31), QueueDispose(Action) wraps every action in new ActionDisposableWrapper(action).
Suggested Fix
Store List<object> (matching ManualDi.Async) and pattern-match IDisposable / Action during Dispose(), eliminating wrapper allocations.
- Dominant language
- C#
- Stars
- 71
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from PereViader/ManualDi
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 88/100
PereViader/ManualDi#200 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
PereViader/ManualDi#199 ·
-
bug
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
PereViader/ManualDi#195 ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 95/100
PereViader/ManualDi#194 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
PereViader/ManualDi#190 ·
All issues in PereViader/ManualDi
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
elsa 3
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
elsa-workflows/elsa-core#9349 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Forrest-Technologies/drover#1040 ·
Maintainers usually reply within 1 day
-
todo
Difficulty 1/5 Under an hour Newbie friendliness 72/100
tonybaloney/CSnakes#864 ·