3 ms·
Forgive me, but it's not clear what this actually does. Is it a map that commits to disk? Does it operate on the filesystem level, or talk to the raw partition
by JosephRedfern 6y ago
Forgive me, but it's not clear what this actually does.
Is it a map that commits to disk? Does it operate on the filesystem level, or talk to the raw partition directly (as sort of suggested by the example)? What's it for?
- duhi88 6y ago>1000 lines of code in one file. Can't get a good sense of what it does, either.
- lucideer 6y ago> Is it a map that commits to disk? It looks that way. > Does it operate on the filesystem level, or talk to the raw partition directly Seems to use NodeJS' `fs` module[0] > What's it for? According to [1]: "How to make a Hash into a Disk system with fast lookup" [0] https://github.com/c9fe/StrongMap/blob/main/src/strongmap.js#L1 https://github.com/c9fe/StrongMap/blob/main/src/strongmap.js... [1] https://github.com/c9fe/StrongMap/blob/main/devlog/TECH.md https://github.com/c9fe/StrongMap/blob/main/devlog/TECH.md
- nicoburns 6y agoIt uses the standard Node.js filesystem functions. Set a key a value writes the value to a file defined by the key and the name of the map that you set when you create it. I have no idea what it's for.