gecko-dev/mozglue
Gerald Squelart b3c424f6d7 Bug 1663382 - Optimize Deserializer<ProfilerStringView> to reference in-buffer data when possible - r=canaltinova
Because string contents could be split in two separate chunks, the default ProfilerStringView deserializer needed to concatenate it together in an off-chunk buffer.
But now thanks to ProfileBufferEntryReader::ReadSpans, it is possible to know if the contents are in a single memory area inside one chunk (which should be the vast majority of cases), in which case the ProfilerStringView can just reference it using its internal std::string_view, which saves managing a separate buffer and copying data into it.
However this can only be done safely when the span is correctly aligned for the character type, which may not be the case for char16_t strings that must be even-aligned.

Differential Revision: https://phabricator.services.mozilla.com/D124430
2021-09-10 11:43:48 +00:00
..
android Bug 1720368 - Remove MOZ_GECKO_PROFILER ifdefs around profiler_init and profiler_shutdown calls, r=gerald. 2021-07-15 22:04:23 +00:00
baseprofiler Bug 1663382 - Optimize Deserializer<ProfilerStringView> to reference in-buffer data when possible - r=canaltinova 2021-09-10 11:43:48 +00:00
build Bug 1683417: Remove tsan suppression and fix race. r=ng,decoder 2021-09-09 17:13:36 +00:00
linker Bug 1725145 - Preparation for the hybrid build env. r=necko-reviewers,firefox-build-system-reviewers,valentin,glandium 2021-08-25 10:46:17 +00:00
misc Bug 1728653 - Allow a silent start mode r=bytesized,nalexander,application-update-reviewers,mossop 2021-09-09 18:09:25 +00:00
static Bug 1727470 - Update builders to rustc 1.55. r=firefox-build-system-reviewers,mhentges 2021-09-09 21:02:28 +00:00
tests Bug 1663382 - Optimize Deserializer<ProfilerStringView> to reference in-buffer data when possible - r=canaltinova 2021-09-10 11:43:48 +00:00
moz.build Bug 1724749: Consolidate all dllservices code; r=tkikuchi 2021-08-12 20:57:12 +00:00
mozglue.rc Bug 1714212 - Ensure COM initialized prior to showing skeleton UI r=Jamie,aklotz,tkikuchi 2021-07-07 22:37:14 +00:00