The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum
 Origin Forum
 Origin and C datasets, sheets attach & performance

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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



The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000