compute genome size on the fly