1. Sequence memory usage
- Posted by just_me Oct 26, 2008
- 912 views
- Last edited Oct 27, 2008
I have never been very much interested in Euphoria memory usage, but I've read from time to time some posts about huge amounts of memory consumed by sequences.
The question is: once traslated to C, do Euphoria sequences consume the same amount of memory?
Thanks,
JG
2. Re: Sequence memory usage
- Posted by DerekParnell (admin) Oct 27, 2008
- 879 views
I have never been very much interested in Euphoria memory usage, but I've read from time to time some posts about huge amounts of memory consumed by sequences.
The question is: once traslated to C, do Euphoria sequences consume the same amount of memory?
For starters, sequence do not consume huge amounts of memory. Where some people have been alarmed is when they find out that each character in a text string takes up 32-bits rather than 8-bits. So unless your application is storing gigabytes of text in RAM, you really haven't got much of an issue.
However, to answer your question ... yes the C code also stores sequences the same way as the interpreter does.