---
title: "Discussion on \"How Gap Buffers Optimize Text Editor Performance\" | Hashnode"
description: "Discussion on \"How Gap Buffers Optimize Text Editor Performance\". Discover how gap buffers optimize text editors by turning expensive O(N) array shifts into fast O(1) memory writes exactly where the user types."
url: "https://hashnode.com/posts/how-gap-buffers-optimize-text-editors/6ab05214c9fd02e785d1447c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How Gap Buffers Optimize Text Editor Performance](https://doogal.dev/how-gap-buffers-optimize-text-editors?utm_source=hashnode&utm_medium=feed)

Discover how gap buffers optimize text editors by turning expensive O(N) array shifts into fast O(1) memory writes exactly where the user types.

Sep 20 · 5 min read · doogal.dev  
Read the article

-   [#computerscience](https://hashnode.com/tag/computerscience)
-   [#softwareengineering](https://hashnode.com/tag/softwareengineering)
-   [#datastructures](https://hashnode.com/tag/datastructures)
-   [#performance](https://hashnode.com/tag/performance)

## Written by

[Doogal Simpson](https://hashnode.com/@doogal)

@doogal

  
[View profile](https://hashnode.com/@doogal)

"hey doogal, what is .... ?"

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
