commit optimization