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

Unified Diff: src/list-inl.h

Issue 13933026: Add a performance test showing that List is not as efficient as std::vector. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Better sort Created 7 years, 8 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
« no previous file with comments | « src/list.h ('k') | src/utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/list-inl.h
diff --git a/src/list-inl.h b/src/list-inl.h
index 408859e45668adcc5e64a38df09159ac92b61ab4..e1ce5a3b649afa69b617f4cb78ebb923603e6e36 100644
--- a/src/list-inl.h
+++ b/src/list-inl.h
@@ -213,6 +213,11 @@ void List<T, P>::Sort(int (*cmp)(const T* x, const T* y)) {
#endif
}
+template<typename T, class P>
+void List<T, P>::SortBetter() {
+ ToVector().SortBetter();
+}
+
template<typename T, class P>
void List<T, P>::Sort() {
« no previous file with comments | « src/list.h ('k') | src/utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698