Reserve space before building potentially large vectors in safe-browsing.
In cases where we can approximate the vector size in advance, reserve() that much space rather than building organically. BUG=97102 TEST=Reduction in crash rate for that bug. Review URL: http://codereview.chromium.org/8005001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102435 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment