+10
−10
+87
−24
+31
−6
Loading
Keys can take up a nontrivial chunk of memory. This change ensures that the memory cost is not per-process. In order to do this we had to switch from nsCStrings to MaybeOwnedCharPtrs pointing to null-terminated char sequences. This meant fiddling around with the code that loads / stores to disk and making it a little bit uglier, rather than adding another method to the IOBuffers classes to support our weird maybe-shared string type. Differential Revision: https://phabricator.services.mozilla.com/D83398