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.
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.
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.
Post a comment
Recent comments
Alex Boschmans
on Nice try at 13:35
Volker Weber
on From my inbox at 12:21
Stephan H. Wissel
on From my inbox at 12:00
Karsten Lehmann
on Nice try at 01:17
Oswald Prucker
on Nice try at 00:54
Jim Boling
on Nice try at 23:24
Albert Dandl
on Nice try at 20:12
Karsten Lehmann
on Nice try at 19:18
Riza Baltazar
on Color coordination for web sites at 19:10
Sean Cull
on From my inbox at 19:00
Armin Roth
on Nice try at 18:02
Bart Severein
on From my inbox at 16:52
Hubert Stettner
on Why is Nokia such a complete failure? at 14:59
Ralf Stellmacher
on Overheard in New York at 12:47
Chris Frei
on Holy moly at 09:03
Ben Poole
on Why is Nokia such a complete failure? at 08:50
Dirk Steins
on Holy moly at 08:11
simon carter
on Why is Nokia such a complete failure? at 08:06
Ingo Seifert
on Holy moly at 05:50
Moritz Schroeder
on Why is Nokia such a complete failure? at 04:22
Mika Heinonen
on Why is Nokia such a complete failure? at 02:26
Andy Mell
on Holy moly at 00:54
Volker Weber
on Why is Nokia such a complete failure? at 00:23
Oswald Prucker
on Holy moly at 00:02
Yves Luther
on Why is Nokia such a complete failure? at 23:33


