Re: Profiling Under Windows & String Size
- Posted by Kat <KSMiTH at PELL.NET> Aug 04, 1999
- 545 views
----- Original Message ----- From: Robert Craig <rds at ATTCANADA.NET> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Wednesday, August 04, 1999 7:11 PM Subject: Re: Profiling Under Windows & String Size <snip> > > 2) In the documentation it states a "string" is simply a > > sequence of numbers. Does this mean each character > > takes 4-bytes of memory, or does Euphoria store them in > > single bytes until it has some compelling reason to do > > otherwise? > > They take 4 bytes. This has been discussed before. > It would be nice if they could only take one byte, and If they took one byte, they could not be upgraded to the upcoming 16bit characters, which will do something the current ascii 8bit byte has no allocations for: store all the Arabian, Japanese, Scandinavian, etc characters. Maybe someday the extra 16bits of the Euphoria character word can be used to store display info for that char such as font, underline, bold, colors, etc. I would have taken Euphoria to task for this apparent memory waste, if it weren't for the other benefits of the language, like transparent memory management, including virtual memory paging to the hd,,,, with a one gig hd, i won't worry about bytes wasted in string storage. <pester mode on> I'd still like a private "goto" command tho... Kat