jbowens / codenames

Play codenames online
https://www.horsepaste.com
617 stars 208 forks source link

use references to word sets #135

Open jbowens opened 3 years ago

jbowens commented 3 years ago

Each in-memory game holds the entire wordset in memory. We can reduce memory consumption by using a shared reference to the word set. These word sets need to be persisted too. It'll make loading games from disk and reclaiming space from old word sets tricker, but it seems doable.