comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: strings and memory usage
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: strings and memory usage [message #55454 is a reply to message #55452] Wed, 22 August 2007 12:32 Go to previous messageGo to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
humm....

IDL> print, memory()
651318 545 213 659591
IDL> test = strarr(5000000)+'asdf'
IDL> print, memory()
125651409 5000549 216 185651386

IDL> test = 0
IDL> print, memory()
651325 5000552 5000220 125651409

IDL> test = strarr(5000000)
IDL> replicate_inplace, test, 'asdf'
IDL> print, memory()
60651418 5000557 5000224 60651418


it is surprising that depending on how you fill the array, the size
differs...

Jean
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: read_ascii for more than one file
Next Topic: mosaic_doit - is it just me?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 13:42:28 PDT 2025

Total time taken to generate the page: 0.95416 seconds