3 ms·
Space doesn’t matter when most you documents are few kb. And when it does, zip it.
by slver 5y ago
Space doesn’t matter when most you documents are few kb. And when it does, zip it.
- JoBrad 5y agoIf you're dealing with files that small then JSON is a great solution. In the past I've used CSV to handle files that are several GB after being compressed and encrypted. Formats such as JSON would have added a lot more to the total file size.
- dragonwriter 5y ago> In the past I've used CSV to handle files that are several GB after being compressed and encrypted. Formats such as JSON would have added a lot more to the total file size. If you store tables as list of objects, sure, but that's comparing the JSON way of doing something CSV can’t handle at all (lists of heterogenous objects) to CSV doing a much simpler thing. A compact, dedicated JSON table representation (list of lists with the first list as header, or a single flat list with the header length — number of columns — as the first item, then the headers, then the data) is pretty closely comparable to CSV in size.