Dactyloidae/toolkit
David Teller 059aeea416 Reduce number of allocations in AutoStopwatch
This patch fixes two related issues.
1. The AutoStopwatch uses a stack-allocated `mozilla::Vector` to
communicate with its callback during each compartment switch.
This vector was designed to allow its contents to be stack-allocated
but they turned out to be accidentally heap-allocated.

2. During each tick, the stopwatch fills a vector `recentGroups_`.
This vector always started with minimal capacity and had to grow
repeatedly as groups were added, causing repeated reallocations.
This patch preallocates `recentGroups_` to have the same capacity as the
previous tick. We expect that this should eventually reach a stable size
that closely matches the actual needs of the process.
2019-02-16 00:27:28 +08:00
..
components Reduce number of allocations in AutoStopwatch 2019-02-16 00:27:28 +08:00
content [PALEMOON] Re-apply removal of unnecessary code (Findbar is no longer in the gBrowser) 2019-02-16 00:19:24 +08:00
crashreporter Remove IPC CrashReporterClient/Host 2019-02-15 23:58:29 +08:00
forgetaboutsite moebius#30 and #37: ForgetAboutSite.jsm - promise - serialize vs. parallel + a comment 2019-02-15 23:50:03 +08:00
identity Remove other gonk widget conditionals and unused files. 2019-02-15 23:57:15 +08:00
jetpack [PMkit] Keep the buttons position when they are placed right before space, flexible space or separator 2019-02-16 00:06:43 +08:00
library Stop including a dummy dll on Windows for broken old versions of WebSense. 2019-02-16 00:22:34 +08:00
locales Do not try and include devtools shared l10n when devtools is not built 2019-02-16 00:11:14 +08:00
modules Add performance warnings to Deprecated module. 2019-02-16 00:23:07 +08:00
mozapps Remove remote add-on debugging control. 2019-02-16 00:27:23 +08:00
pluginproblem palemoon#583 and #1071: Fix: Plugin placeholder image/text (ask to activate) missing + overlay 2019-02-15 23:50:04 +08:00
profile Toolkit - Fix throws an error from Create a New Profile 2019-02-16 00:04:25 +08:00
system import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
themes Issue #832 Part 2: Remove styling and images. 2019-02-16 00:15:52 +08:00
xre Remove all C++ Telemetry Accumulation calls. 2019-02-16 00:12:32 +08:00
.eslintrc.js Fix unsafe "instanceof" negations 2019-02-15 23:55:28 +08:00
moz.build Remove base conditional code for crash reporter and injector. 2019-02-15 23:39:53 +08:00
moz.configure Add --enable-av1 configure switch 2019-02-16 00:16:31 +08:00
nss.configure import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
toolkit.mozbuild Remove OMX related options from configure 2019-02-16 00:22:39 +08:00