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

Home » Public Forums » archive » time cost for file reading increasing!!! same file!
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
time cost for file reading increasing!!! same file! [message #69753] Mon, 08 February 2010 15:20 Go to next message
minchen is currently offline  minchen
Messages: 8
Registered: February 2010
Junior Member
Hi everyone,
I meet a mysterious problem on IDL file reading.
The problem is as following:
I just read the same hdf5 file seveal times and see the time costing.
I find the first 270 file reading is very quickly but after that, the
reading speed drops down although the file is the same one.

The simple code is here:
pro try
filename='./particles.h5'
file_id=h5f_open(filename)
for i=1,2 do begin
i=1 ; here just for test, so it will
always read
print,'Systime=',Systime(0) ; here output the systime
dataset_name='Electrons_at_PE_302'
dataset_id=h5d_open(file_id,dataset_name)
ptcl0=h5d_read(dataset_id)
h5d_close,dataset_id
endfor
h5f_close,file_id
end

I have check the memory, it does not increase. So the memory should no
problem.
Why the reading time increase? I am also sure there is no problem with
the hard disk heating.
So, what's the problem?
Re: time cost for file reading increasing!!! same file! [message #69803 is a reply to message #69753] Thu, 11 February 2010 13:29 Go to previous message
R.G.Stockwell is currently offline  R.G.Stockwell
Messages: 163
Registered: October 2004
Senior Member
On Feb 10, 6:00 am, Bennett <juggernau...@gmail.com> wrote:
....


has this been resolved yet?
I am just curious.

my wild guess. it sounds like the time to read a file increases
by several orders of magnitude (i don't have the original post handy).
Wasn't it seconds, up to 10 minutes?

That sounds like you need to wait for something to time out before you
can make another read.
Are you making a network connection each time (then filling up all possible
connections so you queue and wait for a previous network connection to time
out)?
Something along those lines? just a thought.

cheers,
bob
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: time cost for file reading increasing!!! same file!
Next Topic: Output_To_Ascii

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

Current Time: Wed Oct 08 11:44:06 PDT 2025

Total time taken to generate the page: 0.00411 seconds