It's usually good practice to vectorize when possible, especially since it's not always easy to know in advance if someone is going to call a certain function hundreds or thousands of times. Plus in the end it can actually help reduce coding errors.