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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Performance: V7.0 vs V7.5
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

srmcarneir

Brazil
33 Posts

Posted - 01/10/2005 :  12:15:08 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

cpyang

USA
1406 Posts

Posted - 01/10/2005 :  3:39:05 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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


Go to Top of Page

srmcarneir

Brazil
33 Posts

Posted - 01/11/2005 :  09:30:58 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000