Using less syscalls and processing data in memory makes getNumStringsImpl ~300% faster. The code is much simpler.
--gen-config