3 ms·
Instead of storing the dictionary as a list, why not use a Map or Set? https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map htt
by Inityx 8y ago
Instead of storing the dictionary as a list, why not use a Map or Set?
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
As for offline StackOverflow, you should use a database engine like SQLite or Redis to manage indexing into smaller blocks of compressed post data on-disk, or store the posts directly in the database and keep the database files in a filesystem like BTRFS that supports online compression.