I want to change the way text is presented inside ANY text editor

I want to use an algorithm to reduce the memory used to save a specific text file. I really don't know how the text is stored, but I have an idea.

It would be better to expand the open source text editor (if yes, than which) or write a text editor.

It would be nice if someone could also give me a link or tutorial on some of the basics of text editors and how to store data.

Edited to add

To clarify what I wanted to do, instead of saving duplicate words, create a hash table and save the address where it should be placed.

This way I will not keep duplicates.

This would become specific to a particular text editor.

Update

Thanks to everyone that I received that you will all try to say. In any case, all I wanted to do was, instead of saving duplicate words, make a hash table and save the address where it should be placed.

That I would not keep duplicates.

Yes, and that would be specific to a particular text editor. never realized that.

+3
source share
3 answers

I want to use an algorithm to reduce the memory used to save a specific text file

If you did this, you would no longer have a text editor, but instead you would create some kind of binary editor.

, , .

+11

Emacs . .gz. Emacs .

+7

. ( ), . - . . zip . . , - - , , open, . , . , ( ) . - , . , - Visual Studio , . .

+3
source

Source: https://habr.com/ru/post/1730736/


All Articles