Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Don't re-read the file on every change event - #121

Merged
maxbrunsfeld merged 5 commits into
masterfrom
mb-avoid-unnecessary-reads
Jun 9, 2017
Merged

maxbrunsfeld merged 5 commits into
masterfrom
mb-avoid-unnecessary-reads

Conversation

@maxbrunsfeld

Copy link
Copy Markdown
Contributor

We may have been re-reading the file on every change event in order to suppress redundant change events which didn't actually affect the file's content. But for large files, loading the file's content into a string actually throws an exception. And in general, the read/transcode operation is very expensive. I think we can deal w/ redundant change events at a higher level in text-buffer.

Refs atom/atom#7210

@maxbrunsfeld
maxbrunsfeld merged commit 817fc6d into master Jun 9, 2017
@maxbrunsfeld
maxbrunsfeld deleted the mb-avoid-unnecessary-reads branch June 9, 2017 00:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant