How would you manage performance if the undo stack gets large · InterviewLane