3 ms·
If a bottleneck is dom manipulation, then something that smartly batches them and reduces the number of times it's called would help. How would that not apply t
by taternuts 9y ago
If a bottleneck is dom manipulation, then something that smartly batches them and reduces the number of times it's called would help. How would that not apply to Atom?
- tylerhou 9y agoThe article says this: > In May, we rewrote Atom’s text rendering system from scratch, with the goal of making DOM updates after keystrokes as efficient as possible. We made use of the latest DOM technologies and rendering techniques, and built a tiny React-like library called etch that allows us to structure our rendering code cleanly while still allowing for imperative DOM manipulation for maximal performance in certain code paths. The result is that when typing, typical DOM updates now take less than 5 milliseconds: well within the range required for smooth animation and low energy usage. Emphasis is mine.
- kalcode 9y agoBecause they already implemented something similar as per the blog post. React has an implementation of a virtual Dom. They don't have to use react to do that and as discussed in the blog that is the major slow down on their UI.
- kalcode 9y ago*wasn't one of the major slow downs