2 ms·
As things are written to file, are they pushed to some cache? I’d imagine we are not reading directly from a disk. Is each HN thread it’s own file? How do we a
by ozzythecat 5y ago
As things are written to file, are they pushed to some cache? I’d imagine we are not reading directly from a disk.
Is each HN thread it’s own file? How do we add additional posts into the discussion, maintaining the hierarchy? If each file is a thread, then adding to the discussion means we deserialize the file into memory into some data structure and perform updates in memory? Or is there some syntax that allows us to append to a specific blob/container in the file?
Another way could be maybe you have a file and folder per HN thread, and each response and it’s own responses are their own folder and files (recursively). Not sure how performant this would be though.