-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement scraper global statistics cache optimization
This commit changes the ConvergedManifestPartsMap to a map of pointers, ConvergedManifestPartPtrsMap. All of the pointer ownership problems may not be solved yet by this commit, but most of them are. The CScraperManifest held by the ConvergedManifest is via a shared_ptr. In turn the CParts in the CScraperManifest::CSplitBlob vParts are also mapped into the ConvergedManifestPartPtrsMap, which is indexed by project. The part pointers in the ConvergedManifestPartPtrsMap are valid for the same lifetime as the CScraperManifest held by shared pointer in the ConvergedManifest, so I think this is safe. Thjs minimizes the changes to the rest of the scraper to achieve this optimization. I am less certain of the pointer safety in the changes I made in the quorum and superblock classes.
- Loading branch information
1 parent
c0a6573
commit 330f9e7
Showing
7 changed files
with
451 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#pragma once | ||
|
||
#include <string> | ||
#include "scraper_net.h" | ||
|
||
class CBlockIndex; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.