Some perf improvements when editing in active file