This repository has been archived by the owner on Dec 13, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use faster
setText
when replacing entire buffer contents
Summary:`setText` is 3-4x faster than `setTextViaDiff`. Using it when replacing the entire contents of the buffer makes clicking through files in the diff-view tree show the file up to 100ms faster. **Test run #1** setText, 39.4ms: {F60653266} setTextViaDiff, 170.5ms: {F60653267} **Test run #2** setText, 68.4ms: {F60653269} setTextViaDiff, 171.8ms: {F60653270} Reviewed By: mostafaeweda Differential Revision: D3203887 fb-gh-sync-id: 7d78e07373d688654f6f6f723f30013ffe9e06fd fbshipit-source-id: 7d78e07373d688654f6f6f723f30013ffe9e06fd
- Loading branch information