Bug 1500121 - Give IdValueVector some inline capacity. r=luke
authorJan de Mooij <jdemooij@mozilla.com>
Thu, 18 Oct 2018 18:34:13 +0000
changeset 500630 d46116aa35273c5da6a5970ee683fedaa81dd628
parent 500629 57877c614829ff051ed0e2b66f895292e904b207
child 500631 f6c89db3520cca62fc39ec0915beecf5e9a22278
push id1864
push userffxbld-merge
push dateMon, 03 Dec 2018 15:51:40 +0000
treeherdermozilla-release@f040763d99ad [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersluke
bugs1500121
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1500121 - Give IdValueVector some inline capacity. r=luke Differential Revision: https://phabricator.services.mozilla.com/D9117
js/src/ds/IdValuePair.h
--- a/js/src/ds/IdValuePair.h
+++ b/js/src/ds/IdValuePair.h
@@ -32,13 +32,13 @@ struct IdValuePair
     {}
 
     void trace(JSTracer* trc) {
         TraceRoot(trc, &value, "IdValuePair::value");
         TraceRoot(trc, &id, "IdValuePair::id");
     }
 };
 
-using IdValueVector = JS::GCVector<IdValuePair>;
+using IdValueVector = JS::GCVector<IdValuePair, 8>;
 
 } /* namespace js */
 
 #endif /* ds_IdValuePair_h */