Comparison of memory usage (free editors)

English main discussion
  • Author
  • Message
Offline
Posts: 2248
Joined: Tue Aug 07, 2007 2:03 pm
Location: Vinnitsa, Ukraine

Post by FeyFre »

Skif_off
У sed-а и прочих, есть лимит на длину строки, вряд ли который к длине файле отношения не имеет. У grep-а будет скорее всего лимит по больше, ибо он тупо по строчный фильтр(sed - полноценный редактор с промежуточными буферами и т.п.)

Offline
Posts: 2248
Joined: Tue Aug 07, 2007 2:03 pm
Location: Vinnitsa, Ukraine

Post by FeyFre »

maki
For such tasks it is recommended to use other technologies. For instance, you can use grep or sed utility to seek entries of specific word, and then use other. maybe specially crafted progs to edit it.
In any case it will tale a lot of time, even if you have RAM enough to keep whole 110G file in memory. Non optimized algorithms will be ineffective(for instance, for Galois fields math for processing usual CD image(600MB) optimized algorithm 10000 more effective than direct one; for text we shall have the same issues).

Offline
Posts: 49
Joined: Wed Aug 20, 2014 5:51 am

Post by maki »

FeyFre

Example:

EmEditor

Open 226 GB (!)TXT file = 49 MB RAM !!! :lol: superfast and stable

EmEditor easily opens up to 248 GB or 2100000000000 lines

Offline
Posts: 2248
Joined: Tue Aug 07, 2007 2:03 pm
Location: Vinnitsa, Ukraine

Post by FeyFre »

maki
1. Open 226GB TXT file using EmEditor
2. Delete that TXT file
3. Do your editing tasks

I bet, you shall be unable to do (2). Well, if you do, than you will get a lot of error message for (3). Because *stupid*(IMHO) EmEditor load text partialy and load more portions when needed, so it LOCK file on filesystem, which is fail because most of usecase expect file not to be locked, for instance log files, network filesystems.
AkelPad loads whole file into memory, and file itself can be removed, storage itself can be removed, or storage fails itself. Moreover, if file loaded from network filesytem, AkelPad will continue work flawlessly even if network fails. EmEditor and others who lock files going to hang, maybe crash, and all your editorial work going to be lost. Well, if you accept that risk, that is your choice. I shall not, and AP works for me 100%.

PS: TEXT FILE 226GB. As I said, you going to have a lot of problems while processing such files using common text editors. I MUST use special tools for that purpose. Or you MUST split your VERY IMPORTANT database into smaller clusters. On your desire.

Offline
Posts: 49
Joined: Wed Aug 20, 2014 5:51 am

Post by maki »

Multithreaded design

The key to EmEditor’s large file capabilities is its single-process, multithreaded design, which allows EmEditor to execute powerful functionality without compromising speed or taking up too much memory.

Image

Offline
Posts: 294
Joined: Tue Jul 27, 2010 11:18 pm

Post by Serge Yolkin »

Не то, чтобы интересно, но, всё-таки, что можно редактировать (не искать/смотреть, а именно редактировать) в файле такого размера?

Offline
Posts: 1162
Joined: Sun Oct 20, 2013 11:44 am

Post by Skif_off »

Serge Yolkin
Дамп базы данных, больше ничего в голову не приходит.

Offline
Posts: 49
Joined: Wed Aug 20, 2014 5:51 am

Post by maki »

TEST:

Open TEXT 2,16 GB (25,246,452 lines):shock:
Maximum Number of Files to Replace if Kept Open: 32768

Use: Amazing 2 MB RAM (Idle) (Please believe me!)



Image

Offline
Posts: 294
Joined: Tue Jul 27, 2010 11:18 pm

Post by Serge Yolkin »

Skif_off
Угу. Закат солнца вручную...

maki
OK. You've found The_Best_Editor_for_You. Are you happy?
I have no files of this size and I don't need the tool for editing it.

Offline
Posts: 49
Joined: Wed Aug 20, 2014 5:51 am

Post by maki »

I'm not happy !!!!!:cry:

I do not know where they are similar options in PSPad:

PSPad -> Find -> BUTTON [COPY] (Find and Open resultat New Window) e a s y !!!

EmEditor -> ???????Where are these options. It's really very important. Please answer.


AkelPad -> similar option ???? [COPY]

Offline
Posts: 1162
Joined: Sun Oct 20, 2013 11:44 am

Post by Skif_off »

maki
SearchReplace.js & Log plugin?

Offline
Posts: 294
Joined: Tue Jul 27, 2010 11:18 pm

Post by Serge Yolkin »

maki
About the PSPad or EmEditor, you can ask on the PSPad or EmEditor forums... Why do you need AkelPad?

Offline
Posts: 49
Joined: Wed Aug 20, 2014 5:51 am

Post by maki »

Serge Yolkin - Because did not reply to my messages (other forum)

KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post by KDJ »

maki
It seems to me that for you would be suitable hex editor eg. HxD: http://mh-nexus.de/en/hxd/
Instant opening regardless of file-size
Up to 8EB; opening and editing is very fast

Offline
Posts: 49
Joined: Wed Aug 20, 2014 5:51 am

Post by maki »

KDJ wrote:maki
It seems to me that for you would be suitable hex editor eg. HxD: http://mh-nexus.de/en/hxd/
Instant opening regardless of file-size
Up to 8EB; opening and editing is very fast

It has the same options as PSPad?
Post Reply