Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/thysultan/gap
- Owner: thysultan
- License: mit
- Created: 2017-06-26T03:13:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-03-12T18:46:35.000Z (over 2 years ago)
- Last Synced: 2024-04-13T21:53:19.696Z (7 months ago)
- Topics: canvas, javascript, text-editor, web-worker
- Language: JavaScript
- Homepage: https://thysultan.github.io/gap/
- Size: 80.1 KB
- Stars: 8
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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.