PERF: StataReader is slow

Removal of one loop with replacement by vectorized version in StataReader