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
 Performance: V7.0 vs V7.5

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
srmcarneir Posted - 01/10/2005 : 12:15:08 PM
Origin Version: OriginPro v7.5853
Operating System: Win2k/WinXP

Hi,

Users at our site have informed that their LT and OC codes used
to run considerably faster under OriginPro v. 7.0 SR4,
comparing to v. 7.5 SR4. Our hardware did not change after updating
to v. 7.5 nor our OS (Win2k/XP).

This behavior is about the same if Origin runs alone or
shares the machine resources with other applications,
such as Office, e-mail client, etc.

Has anybody observed sth like that?
We have already searched into Origin forum database and saw
no similar case.

Just a guess: if less libraries were compiled at Origin startup
could be of any help (if this feature is configurable) to make
it faster during runtime?

Thanks to all in advance, have all a Great New Year!

Ricardo Carneiro
2   L A T E S T    R E P L I E S    (Newest First)
srmcarneir Posted - 01/11/2005 : 09:30:58 AM
Hi CP and All,

It really seams to be the best way: to try to convert our old LT code
into OC as much as possible to enhance performance, besides using
the "LT_fast" approach you just gave us.
We will be working on that subject the following days.

Thanks,

Ricardo Carneiro
cpyang Posted - 01/10/2005 : 3:39:05 PM
it is true that if less libraries are compiled, then things will be faster. This will be difficult though, as in 75 most things, including the NAG library, are compiled into origin.h to speed up compiling and loading of other files.

Do you make calls to LT from your OC code? If that is the case, it is possible to speed things up a bit if you know the LT code does not then call OC functions. As when LT interprets, it will need to search for all the words to check and see if it is an OC function. The @OC system variable can turn this OC search off, as shown below,


bool LT_fast(LPCSTR lpcszLT)
{
double dVal;
LT_get_var("@OC", &dVal);
LT_set_var("@OC", 0); // turn off all OC searching for subsequent LT
bool bRet = LT_execute(lpcszLT);
LT_set_var("@OC", dVal);

return bRet;
}

void test()
{
LT_execute("@OC=;sec;type from regular LT_execute;for(i=1;i<10000;i++) {type -q $(sin(i))};watch");
LT_fast("@OC=;sec;type from LT_fast;for(i=1;i<10000;i++) {type -q $(sin(i))};watch");
}



Now this LT string only has one sin(i) function, so the difference is small, but if the LT code involves a lot more LT functions and other terms, then difference might be bigger.


CP



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