flat assembler
Message board for the users of flat assembler.

Index > IDE Development > memory management (fasmw)

Author
Thread Post new topic Reply to topic
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji 09 Aug 2010, 07:03

Tomasz ... look at this,

with file "test.asm" (from breed.asm)
3.000.000 lines/1.000.000 labels - test.asm = 53Mbytes.

memory available before open this file : 2.930.000 ko (2,9Gbytes)

a) I open this file with wordpad : 2.780.000ko
b) I open this file with fasmw (original 1.69.14) : 2.170.000ko

800Mbytes more with fasmw, why ?

thank you.

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 09 Aug 2010, 07:03
View user's profile Send private message Send e-mail Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8356
Location: Kraków, Poland
Tomasz Grysztar 09 Aug 2010, 08:35
It is often a case that you have to choose between speed and small memory usage (there may also exist some nice compromise between the two, but at the price of quite complex algorithm).
The AsmEdit control was written with an idea in mind that you should be able to comfortably edit even very large files, while still keeping the code relatively simple. This was achieved by eating up quite larger amount of memory (and a long load time for really huge files) - however after you load such file, you can edit it easily, just as comfortably as the small one - that was the idea. When I try opening that 53MB file with WordPad, the editing is so slow that it unusable for me. In fact once one of my friends who never had anything to do with assembly found fasmw very useful for editing some SQL dumps that he had trouble editing with other tools.

PS. You can reduce the memory overhead by reducing the SEGMENT_DATA_SIZE constant of AsmEdit, however you must keep it large enough that single segment is able to contain the editor status variables (that is a small design flaw), their size is defined with "editor_status_size" label.
Post 09 Aug 2010, 08:35
View user's profile Send private message Visit poster's website Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji 09 Aug 2010, 09:21
Quote:
It is often a case that you have to choose between speed and small memory usage
(there may also exist some nice compromise between the two
ok, I understand. No, I will not change anything. Fasmw works fine that way.
...speed, and memory usage ... a problem as old as the hills.
I also have some compromises about this in wink.
Quote:
wordpad+53Mb file : the editing is so slow that it unusable for me
yes, indeed. Q6600,4Gb,3Ghz .... unusable for mee too.
Thank you for your reply Tomasz.

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 09 Aug 2010, 09:21
View user's profile Send private message Send e-mail Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.