prealloc (partial) in computeVocab