-
Notifications
You must be signed in to change notification settings - Fork 64
Optimize memory #75
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
base: master
Are you sure you want to change the base?
Optimize memory #75
Conversation
Codecov Report
@@ Coverage Diff @@
## master #75 +/- ##
==========================================
- Coverage 57.81% 55.61% -2.21%
==========================================
Files 70 76 +6
Lines 6427 7462 +1035
==========================================
+ Hits 3716 4150 +434
- Misses 2424 3006 +582
- Partials 287 306 +19
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
This removes the need to declare what "interface" or type a module provides to the module system, thus being more in line with the "Go way" of implicit interfaces. The module system looks for a module with a compatible type. If multiple modules implement the same type, the module system chooses the one that was added to the builder last.
If we are going to use a view context for voting, then we need to be in the correct view before we start the voting process. Otherwise, the vote could be canceled by the following view change.
This decouples contexts from the synchronizer and makes them listen for events on the event loop.
This commit aims to make the eventloop more flexible by allowing both async and sync handlers again. Handlers can be made async by passing a RunAsync handler option. Furthermore, observers have been replaced by a WithPriority handler option.
Smart contexts that listen for timeouts
This avoids many memory allocations
e9ffe83
to
a0f05ea
Compare
@johningve Could you resolve the conflicts in this PR before I review it? |
I looked at this, and I like many of the changes here independent of the memory improvement gained. It probably does not make sense to try to salvage this PR as is, but perhaps we should start a new PR and redo this on top of master. @johningve Can you recall why this never moved out of draft mode? |
Various memory optimizations.
Before:
profile (1).pb.gz
After:
profile.pb.gz