2 ms·
I used to work at a company where the "database" was literally a raw dump of the in-memory array of structs defined in a C program. Had some fun with that becau
by krylon 9y ago
I used to work at a company where the "database" was literally a raw dump of the in-memory array of structs defined in a C program. Had some fun with that because struct padding depended on compiler flags, so different varieties of the program that were built with different compiler flags could not read each other's "database".
I never got over it, really. On the plus side, it was super fast, that I cannot deny. But it always seemed super gross to me.
- kalleboo 9y agoLots of software used to do this, back when computers were really slow and low on RAM. The old MS Office, Adobe Photoshop formats are notorious for it.
- krylon 8y agoTo be fair, the software had been first written in the early 1990s, so I can imagine it was a rational decision back then. I was just always amazed that there never were any problems with corrupt files.