Selection of speed as function of tool diameter