4 ms·
> So our initial 1 GB binary data pretty printed as a string will take about 1 GB × 3.57 characters/byte × 2 words/character × 8 bytes/word = 57.12 GB memory.
by davidw 4y ago
> So our initial 1 GB binary data pretty printed as a string will take about 1 GB × 3.57 characters/byte × 2 words/character × 8 bytes/word = 57.12 GB memory.
Yeah, I saw that one in an Erlang system too. It was pretty ugly.
- detuur 4y agoIMHO, the obvious takeaway for me here is that pretty printing debug data should not be part of the originator system. It's a-okay to dump a 1GB binary log. The pretty-printing logic should be located in whatever dedicated application is used to inspect those dumps.
- teddyh 4y agoFor many people, though, “binary logs” is a bad word.