Closed coolbutuseless closed 5 years ago
This is a monster overhaul of the main "words" data structure.
Instead of storing raw words, we split it up and store:
By storing integer vectors rather than character strings there is about a 50% reduction in memory usage, and the compressed data is now <5MB.
The downside is that creating the integer vectors from the word lists isn't very fast, and you wouldn't want to do this dynamically.
The upsides:
syn()
syns()
.onLoad()
data-raw/download-and-compress-moby.R
This is a monster overhaul of the main "words" data structure.
Instead of storing raw words, we split it up and store:
By storing integer vectors rather than character strings there is about a 50% reduction in memory usage, and the compressed data is now <5MB.
The downside is that creating the integer vectors from the word lists isn't very fast, and you wouldn't want to do this dynamically.
The upsides:
syn()
andsyns()
.onLoad()
stuff to dynamically load datadata-raw/download-and-compress-moby.R