3 ms·
Why are all these "separated"? Sounds like null-terminated C strings. Wouldn't it be better to put the dimension in a header and then just dump the contents uns
by hoseja 5y ago
Why are all these "separated"? Sounds like null-terminated C strings. Wouldn't it be better to put the dimension in a header and then just dump the contents unseparated? Why the need to view them in simple text editors?
- eru 5y agoWhat you suggested works for fixed width fields only, doesn't it?
- hoseja 5y agoYeah, true. Still, one or more bytes of overhead per cell and row/column seems wasteful.
- hermitcrab 5y agoFixed width formats are only efficient when everything in a column is a similar length. You only need a single 1000 char data value in a column to mean either the whole column is 1000 chars or the data is truncated.
- eru 5y agoSpace efficient, that is. Fixed width formats are pretty efficient for quick random access. Btw, you can have a mostly fixed width format, but with an escape that puts larger value somewhere else. That's more or less what some relational databases are doing, I think.