Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thysultan/gap

A web worker, offscreen canvas, gap buffer text editor
https://github.com/thysultan/gap

canvas javascript text-editor web-worker

Last synced: about 1 month ago
JSON representation

A web worker, offscreen canvas, gap buffer text editor

Awesome Lists containing this project

README

        

# Gap

An extendable gap buffer based text editor written in JavaScript run in a web worker, rendering to canvas through offscreen canvas completely of the main thread.

The goal is to write the fastest, smallest(3-4kb), most memory efficent extendable code editor written in JavaScript.

The previous [Demo](https://thysultan.github.io/gap/) used to stress test using `300,000` lines, `5,556,000` characters or around `5.5MB` which was all rendered in 4ms.

The previous demo use to render on the main thread not using offscreen canvas. There's currently no benchmark for the current work in progress, that said rendering is a constant time operation so the number of lines or characters in a document do not have much meaning except if you have a 300,000 "pixel" 79 meter tall display: which in present-tense(2022) doesn't exist.