Nested if was fixed. The small performance improvement is likely non-existent, as usually an edit operation starts a new undo state :).