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

Home » Public Forums » archive » memory allocation
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: Memory Allocation [message #38057 is a reply to message #16460] Sun, 15 February 2004 05:40 Go to previous message
justspam03 is currently offline  justspam03
Messages: 36
Registered: October 2003
Member
Hi Neil,

Which IDL version do you use? It seems that memory handling
has improved quite a bit going from version 5.6 to 6.0.
Under 5.5/5.6 we observerd the following:

version a)
1) allocate large chunk of memory
(1200 objects, ca. 100MByte total)
2) allocate another chunk of memory
and resort data from 1) into this space
3) destroy objects allocated in step 1)
as they're not needed any longer
4) perform calculations on data located
in memory (from step 2)

version b)
exactly as a), but do not destroy objects
in step 3

Surprisingly version a) ran *much* faster (we're
talking about a factor of ~5) than version b)
Any idea why?
Seems this is not the case in 6.0 any longer.
Object destruction is quite a bit faster, too.
Kind regards,
Oliver
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Memory Allocation
Next Topic: Savgol - Differentiation problems

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

Current Time: Wed Oct 08 13:40:07 PDT 2025

Total time taken to generate the page: 0.00424 seconds