Right before setting any uniform parameter to the shader, I am using glGetUniformLocation to retrieve its position instead of doing it once in the begining and storing the int position value. Like this::
const int location = glGetUniformLocation(program, name.c_str());
glUniform4fv(location, 1, &v.x);
Would it considerably affect my performance?