Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



You 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?


Journald doesn't actually parse the log strings. Any parseable entities are stored in separate fields (see `man systemd.journal-fields`)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: