-
Notifications
You must be signed in to change notification settings - Fork 482
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
Perf/dont redownload downloaded code #6873
Changes from 5 commits
a856c6b
08a030b
3aea262
2495d9d
35658f1
c23459b
2457ae7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,5 +26,6 @@ public interface ISnapProvider | |
|
||
bool IsSnapGetRangesFinished(); | ||
void UpdatePivot(); | ||
void Dispose(); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -205,6 +205,7 @@ public override void SyncModeSelectorOnChanged(SyncMode current) | |
if (_disposed) return; | ||
if (CurrentState == SyncFeedState.Dormant) | ||
{ | ||
_snapProvider.Dispose(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. won't this be called over and over again? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ow, I think I made a mistake here. |
||
if ((current & SyncMode.SnapSync) == SyncMode.SnapSync) | ||
{ | ||
if (_snapProvider.CanSync()) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
512kb of Keccaks; does/can this get dumped after sync?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can drop/clean it after the sync finishes.