diff options
| author | Julian Andres Klode <julian.klode@canonical.com> | 2025-03-20 15:03:23 +0100 |
|---|---|---|
| committer | Julian Andres Klode <julian.klode@canonical.com> | 2025-03-20 15:09:56 +0100 |
| commit | a2cb87afcbc89d1f8e770c26121a75d9c1654458 (patch) | |
| tree | ae9708cbc7a21788074b8d2a0ebbfb19284115f1 /methods | |
| parent | 109fdcac9a16ffa06b06366134dcaaef7e2b3379 (diff) | |
solver3: Use zstd-compressed, base64-encoded dumps
Store the solver dumps with zstd compression and base64-encode
them in the crash report; such that they take up significantly
less space and can fit in cassandra's schema.
Base64 is wrapped at 76 characters as the base64 tool does. Do
some magic std::string_view conversion to avoid string copies
for the substr() used to get 76 characters at a time.
Note we can rely on substr(i, 76) to handle less than 76 characters
just fine; it uses std::min(76, size() - i) characters.
Diffstat (limited to 'methods')
0 files changed, 0 insertions, 0 deletions
