3 ms·
Re the failure part: you can just plug in any USB stick with a normal linux distro and it will read it out just fine. Re performance: Strings are most defintel
by kaba0 5y ago
Re the failure part: you can just plug in any USB stick with a normal linux distro and it will read it out just fine.
Re performance: Strings are most defintely worse than some fixed size format. It’s not an accident that FPGAs were used to serialize/deserialize XMLs, why Google made a whole new binary protocol, etc. Just think about it, you have to parse a string character by character (yeah some clever vector magic can make some string processing go a few chars at a time), while a binary format with fixed layout will be practically random access. You can query the nth entry, etc.
- withinboredom 5y agoYou also have to parse a binary protocol byte by byte, or at least the bytes you care about. But the question is, why are we parsing logs at all?
- lavabiopsy 5y agoJournald doesn't actually parse the log strings. Any parseable entities are stored in separate fields (see `man systemd.journal-fields`)