3 ms·
In the general case that's a huge pain. In this case, where you're writing a single blob to disk, you can stick a checksum at the end and you're good to go.
by Dylan16807 10y ago
In the general case that's a huge pain. In this case, where you're writing a single blob to disk, you can stick a checksum at the end and you're good to go.
- gcp 10y agoIf you read the bug discussion, you'll see this is one of the most problematic parts.
- Dylan16807 10y agoThis bug? https://bugzilla.mozilla.org/show_bug.cgi?id=1304389 https://bugzilla.mozilla.org/show_bug.cgi?id=1304389 It doesn't talk about the difficulties in getting data safely to disk. There's just a worry that taking a hash of the entire session state is expensive. I'm skeptical that a fast hash would take long compared to the time spent serializing to JSON in the first place, let alone time spent diffing.