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

Home » Public Forums » archive » Re: Reading columns of binary data
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: Reading columns of binary data [message #49678 is a reply to message #49596] Tue, 08 August 2006 07:57 Go to previous messageGo to previous message
Foldy Lajos is currently offline  Foldy Lajos
Messages: 268
Registered: October 2001
Senior Member
On Mon, 7 Aug 2006, JD Smith wrote:

> I'd regard this as yet another example of why IDL needs a fast
> compiled "side-loop" primitive for generic looping operations which
> don't need the full conveniences of the interpreter loop (ability to
> hit Control-C to interrupt, etc.). I should be able to say:
>
> a=fltarr(500000,/NO_ZERO)
> f=0.0
> for_noblock i=0L,500000L-1L do begin
> point_lun,un,i*100L
> readu,un,f
> a[i]=f
> endfor
>
> and not have it be 100x slower than the equivalent in C.
>
> JD
>

Hi,

I mentioned assoc yesterday, so let's try again:

arr=assoc(un, [0.])
for i=0L,500000L-1L do a[i]=arr[25l*i]

it will do the point_lun/readu in one step, so it should be a little bit
faster. But I think a faster loop here would not help much, as disk I/O
is the limiting factor.

regards,
lajos
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problems with plotting in histogram mode
Next Topic: Re: Problems with plotting in histogram mode

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

Current Time: Wed Oct 08 19:33:33 PDT 2025

Total time taken to generate the page: 0.00436 seconds