The full Hungarian wiki has ~4.3 GB of data, but ~2.5GB of unique string content:
cat data/huwiki-latest-pages-meta-current.xml | sed 's/[\t ]/\n/g' | grep -v ^$ | sort | uniq | wc -m
2507384541
There are ~25M unique tokens.
This means that we are generating gigantic hashtables with generally count = 1, and languages that store Unicode strings as 2-byte representations in memory suffer greatly due to memory overheads. Much of the memory used will simply be storing the unique strings.
The full Hungarian wiki has ~4.3 GB of data, but ~2.5GB of unique string content:
There are ~25M unique tokens.
This means that we are generating gigantic hashtables with generally count = 1, and languages that store Unicode strings as 2-byte representations in memory suffer greatly due to memory overheads. Much of the memory used will simply be storing the unique strings.