atom-archive / text-document

MIT License
57 stars 10 forks source link

Add TextBuffer APIs needed for rendering files in Atom #7

Closed maxbrunsfeld closed 9 years ago

maxbrunsfeld commented 9 years ago

TextEditors are able to render, without cursor movement or editing. I have a branch of Atom for testing this out.

screen shot 2015-03-26 at 7 35 58 pm

benogle commented 9 years ago

Whoa. Whats the difference in memory footprint? Whats the scroll experience like with a huge file?

benogle commented 9 years ago

I'm so impressed it's just a drop in for TextBuffer.

benogle commented 9 years ago

I suppose the user perceived scroll differences will come from the displayBuffer replacement

maxbrunsfeld commented 9 years ago

It's a lot slower right now, because Atom isn't making use of its efficient iterator-based API. It also doesn't have caching and a lot of other really important things right now, so this is really just a starting point so we can start to find the biggest bottlenecks.