Improve BA running time on windows. #176