Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Unified Diff: net/disk_cache/simple/simple_index.h

Issue 2789683002: Speed up SimpleCache eviction set computation (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/disk_cache/simple/simple_index.h
diff --git a/net/disk_cache/simple/simple_index.h b/net/disk_cache/simple/simple_index.h
index 7758d91362ab14882989e9ee19e05628fe108d53..c72243e50c61e6f6a8c62bd062dd172d6a24f624 100644
--- a/net/disk_cache/simple/simple_index.h
+++ b/net/disk_cache/simple/simple_index.h
@@ -175,6 +175,7 @@ class NET_EXPORT_PRIVATE SimpleIndex
FRIEND_TEST_ALL_PREFIXES(SimpleIndexTest, DiskWriteQueued);
FRIEND_TEST_ALL_PREFIXES(SimpleIndexTest, DiskWriteExecuted);
FRIEND_TEST_ALL_PREFIXES(SimpleIndexTest, DiskWritePostponed);
+ FRIEND_TEST_ALL_PREFIXES(SimpleIndexPerfTest, EvictionPerformance);
pasko 2017/03/31 17:41:56 It would be more readable to introduce a public Si
Maks Orlovich 2017/03/31 19:01:29 Great idea, done. Also lets me avoid being in the
void StartEvictionIfNeeded();
void EvictionDone(int result);

Powered by Google App Engine
This is Rietveld 408576698