How is the memory managed in text editors?

Viewed 19

Recently taking a deeper delve into memory in computer science, I came across a thought? How do text editors typically manage their memory? When you insert a character, does the entire rest of the document get copied one unit forward (O(n)) in RAM? Is there some sort of linked list involved? Is there padding around each character to prevent many reallocations?

0 Answers
Related