thysultan / gap

A web worker, offscreen canvas, gap buffer text editor
https://thysultan.github.io/gap/
MIT License
9 stars 2 forks source link

amazing ! #1

Open ichiriac opened 7 years ago

ichiriac commented 7 years ago

Hi @thysultan,

Just wanted to tell you that's a great idea to optimize rendering by using canvas and the result is great. Do you will continue or this is just a proof of concept ?

Still remains a lot of work to be done but your approach is by far better than Ace or CodeMirror, the potential is just unlimited and memory and performance will be by far greater !

Good job dude, congrats :+1:

ichiriac commented 7 years ago

Just found another project a bit more advanced, and using the same principles : http://jdfreder.github.io/poster/

I've tested a series of copy/paste resulting in about 1,500,000 lines without freezing, done the same on ace, started to freeze after about 2000 lines :laughing:

thysultan commented 7 years ago

Thanks, i haven't put much work into it recently but i do plan to continue with this.

The goals of this project where two fold, the first one was to use canvas for rendering which should yield improvements in memory and performance but more importantly implementing an efficient gap buffer data-structure in JavaScript that would yield better memory and performance overall.

The next hurdle left to overcome is a good middleware implementation that would allow implementations to extend the editor with regards to syntax highlighting and plugins.