T O P I C R E V I E W |
peter.cook |
Posted - 10/26/2003 : 02:21:54 AM Can you please clarify for me thanks when the Attach (& Detach) method is required as opposed to the Dataset constructor? I always seem to just use the Dataset constructor and would appreciate some tips / hints as to when I might want to use either way.
Also, are there any memory or performance issues here? Does it help to detach datasets at all? Might it be quicker to work with Origin C datasets and then copy to Origin datasets? Can datasets be attached for functions ie attach once for use in multiple functions - or is there nothing to be gained here anyway?
Apologies for broad questions but any advice would be appreciated.
Cheers,
pete
|
2 L A T E S T R E P L I E S (Newest First) |
peter.cook |
Posted - 10/27/2003 : 11:20:46 AM Thanks for reply CP. I was almost there but got confused by the different options.
Cheers,
pete
|
cpyang |
Posted - 10/26/2003 : 4:04:56 PM Dataset is a wrapper object, so it does not matter if you construct it or attach it to an Origin dataset. There is no copying of the data in either case, it is merely a reference to the actual internal data. On the otherhand, a vector or a matrix would be separate memory objects.
Dataset aa("data1_a"); // this is very fast,
vector vv = aa; // this will take longer if data1_a has many rows.
CP
|
|
|