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

Home » Public Forums » archive » Re: Short array 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: Short array memory allocation [message #61222] Thu, 10 July 2008 13:56 Go to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article
<0b404667-7c2f-41d9-a507-ede3ba1df3fc@56g2000hsm.googlegroups.com>,
ray.laymon064@gmail.com wrote:

> Hi Everyone,
>
> I searched the posted messages but couldn't find the answer I am
> looking for. Sorry if I repeat the same question.
>
> I am dealing with some data in "grib" format. I perform a simple
> operation on each file (open/extract single pixel). The array size of
> each file is small (450*250), and I don't store any of the variables
> at each loop (overwrite so no memory allocation is needed). However,
> there are lots of files (~600,000).
>
> I have a 2.5 Ghz dual-core 4GB memory laptop. When I run my script it,
> the task manager tells me IDL uses ~ 12% CPU & ~32MB memory (total PC
> CPU usage is ~ 16% and total PC memory usage is ~ 450MB)...And the
> whole script takes ~1,5 hours.
>
> I know, there are lots of small files, and naturally it takes time but
> is there a way I can speed up the processing time?
> Thanks,
>
> Ray

Try opening and closing the files without doing any work. It will probably
take about the same amount of time. That is, most of it is probably
system overhead.

Ken Bowman
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Compare two variables
Next Topic: MODIS input header error

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

Current Time: Fri Nov 28 08:03:37 PST 2025

Total time taken to generate the page: 0.00817 seconds