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

Home » Public Forums » archive » array concatenation and optimization
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
array concatenation and optimization [message #26793] Wed, 26 September 2001 11:18 Go to previous message
Sean Raffuse is currently offline  Sean Raffuse
Messages: 46
Registered: July 2001
Member
Hello.

I am trying to read a bunch of data from a file to a structure array. I'm
not sure many data entries the file will have until I have read it and so I
am increasing the size of the structure array after reading each line. I do
this by concatenating.

adp_struct_single is the structure as a "scalar"
adp_struct is the array

I concatenate like so:
adp_struct =[adp_struct, adp_struct_single]

This is working but it has increased the processing time of my loop by an
order of magnitude. Is there a better way to do this? Is there a reason
this is so slow?

Thanks in advance.

-Sean Raffuse
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Declaration of variables in IDL
Next Topic: Re: TOTAL(): was Declaration of variables in IDL

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

Current Time: Wed Oct 08 13:04:19 PDT 2025

Total time taken to generate the page: 0.00380 seconds