Notes performance tuning

by Volker Weber

Problem:

You notice an increase in the time it takes to open a form containing several subforms, when some of these subforms load script libraries.

Workaround:

It was found that adding the LotusScript "Print" statement to the 'Initialize' event of each of the subforms resulted in a return to normal performance levels.

More >

Comments

That's actually old wisdom.
If there is a lot of lotusscript in forms and subforms you need something in the initialize event.
runfaster = true
would also do!
I realized if the globals in the form doesn't contain LS but only the form level than the speed problem doesn't occur.

:-) stw

The correct workaround is to simply add some comment in EVERY form and Subform you load - so probably best to ALL of them. There is no correlation between big code in a (sub)form, small code or no code in it - simply some code has to be there and a comment is all you need. For myself I decided to add the line
' do not remove this comment
into every form or Subform into the Globals Options section.

Michael Gollmick, 2007-10-27 13:40

Adding useless code all over the show makes it run faster? You guys kidding? When I was younger, we used to optimize and remove code to make software perform better...

Oh, I get it; it is a joke. IBM just wants to sell more metal. :-)

That stuff is only needed if you have code in your main forms global section in the first place. If you only have code in the forms part -- but not in globals it has no effect.
I guess it is a question of the runtime looking for the LS object in the subform and being very fast if one is there and being slow when not found. But I agree with Jan --- it's weird.

Nope it is not the print Statement that fixes this. It is the compile that comes after you saved the subform.
And if you do a recompile all lotus script at any time later again this ugly beast will raise its head again.

One brilliant guy working for pavone found out what happened and why.

Thomas Schulte, 2007-10-29 13:05

Post a comment











Shall I remember this for you?




Use your full name and a working email address. Unless you want your comment to be removed. No kidding.



Recent comments

Sascha Westphal on How to Setup Your Own Web Proxy Server For Free with Google App Engine at 19:19
Moritz Schroeder on The Single Sign On at 13:43
Nils Halvorsen on How to Setup Your Own Web Proxy Server For Free with Google App Engine at 22:35
Mitch Cohen on How to Setup Your Own Web Proxy Server For Free with Google App Engine at 22:12
Nick Daisley on The Single Sign On at 20:54
Volker Weber on The Single Sign On at 14:17
Tobias Hauser on The Single Sign On at 13:12
Martin Böhm on As if Palm needed more problems at 13:03
Ralf Stellmacher on Zitat des Tages at 11:40
Philipp Sury on The Single Sign On at 11:33
Jan-Piet Mens on The Single Sign On at 10:48
Chris Frei on The Single Sign On at 09:55
Volker Weber on iPhone OS 3.1.3 brings back Internet Tethering to unlocked iPhones at 00:18
Steven Payne on iPhone OS 3.1.3 brings back Internet Tethering to unlocked iPhones at 00:15
Robert Dahlem on Zitat des Tages at 22:22
Volker Weber on Steve Jobs at the 2010 Oscars at 22:21
Richard Kaufmann on Who wants a free Sonos? Better: who wants four? at 21:23
Jan Schierkolk on Steve Jobs at the 2010 Oscars at 18:47
Volker Weber on iPhone OS 3.1.3 brings back Internet Tethering to unlocked iPhones at 18:44
Steven Zwerink on iPhone OS 3.1.3 brings back Internet Tethering to unlocked iPhones at 18:33
Ragnar Schierholz on Who wants a free Sonos? Better: who wants four? at 18:31
Ragnar Schierholz on Zitat des Tages at 18:30
Keith Taylor on Who wants a free Sonos? Better: who wants four? at 17:59
John James on Who wants a free Sonos? Better: who wants four? at 17:42
Volker Weber on Who wants a free Sonos? Better: who wants four? at 17:40

Ceci n'est pas un blog

vowe.net is a personal website published by Volker Weber a.k.a. vowe. I am an author, consultant and systems architect based in Darmstadt, Germany.

rss Click here to subscribe

Hello

About me
Contact
Publications
Certificates
Frequently asked questions
Join the network

Twitter Updates

More >

Local time is 00:28

visitors.gif
101 visitors online

News

Other sources of news, imported into my own format to make them more accessible:

Schlagzeilen
Weather

Archives

As most of my articles roll off the front page rather quickly, I am making an archive of previous posts available here. You can also use the handy search box at the top of the page if you are looking for something particular.

Last 30 days
More archives

Got the T-shirt?

Got the T-shirt?

Systems Architecture

This site runs on an Apache web server on top of the Linux operating system. The content is managed with MovableType which is implemented in Perl. Last but not least the HTML code your browser sees is put together with PHP.

© 1992-2010 Volker Weber.
All Rights Reserved.

Impressum