[1/5] from: rotenca::telvia::it at: 9-Oct-2001 16:24
I have uploaded in the rebol library "mem2.r" with a set of functions to test memory usage of everything in rebol. I should like to know bug and some results on differents OS. I use W98. The first things i have discovered is that everything use 16 bytes of memory (even a char) because everything is in a block and every position in a block use 16 bytes. A void block () is 32 bytes. A simple path (a/b) is 112 bytes. A function like help allocates 29040 bytes. func  allocates 288 bytes. use  allocates 224 bytes make object!  allocates 176 bytes A string of len 0 and a string of len 13 uses the same memory, from 14 to 29 the memory used is the same, then there is another allocation of 16 bytes and so on, so the first 3 byte are used for something else. Analog behaviour for issue and others dataypes. Rebol is 16byte dependent, at least under w98 but i do not think this change from os to os. --- Ciao Romano
[2/5] from: aroberts:swri at: 9-Oct-2001 13:17
I can't find the mem2.r at the Rebol site. Do you have a web site with it? Regards, Aaron R> Romano Paolo Tenca wrote:
> I have uploaded in the rebol library "mem2.r" with a set of functions to test > memory usage of everything in rebol.
<<quoted lines omitted: 21>>> [rebol-request--rebol--com] with "unsubscribe" in the > subject, without the quotes.
-- Thank you, Aaron Roberts Southwest Research Institute Advanced Simulation Technologies Section (210)-522-5137 www.swri.org
[3/5] from: rotenca:telvia:it at: 9-Oct-2001 20:42
You must search under Library, click on History, and then the first file should be mem2.r --- Ciao Romano
[4/5] from: g:santilli:tiscalinet:it at: 10-Oct-2001 15:16
Romano Paolo Tenca wrote:
> Rebol is 16byte dependent, at least under w98 but i do not think this change > from os to os.
It could change on 64 bit CPUs (as Carl noted to this list too, IIRC...). Regards, Gabriele. -- Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/
[5/5] from: rotenca:telvia:it at: 10-Oct-2001 16:42
> > Rebol is 16byte dependent, at least under w98 but i do not think this
> > from os to os. > > It could change on 64 bit CPUs (as Carl noted to this list too, > IIRC...).
Right! 32 byte? There are 16 bit version of rebol? (8 byte?)
> Regards, > Gabriele.
--- Ciao Romano
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted