A more concrete example,  you are trying to avoid recalculating here if the cursor hasn't changed right? Is DOMRange equality object-based or based on the start/end containers?

Either way, I don't think this is an actual performance improvement (or would prefer some proof that it is).