Using Actionbar slows application ?!?

Hi

In my “MainView” (the primarily used/opened view), I have a handfull of menus containing about 8 actions in each menu.

When opening my database on server (containing around 230.000 documents) it takes about 20 second before the “MainView” pops up…

BUT - if i remove all the actions in the actionbar, it only takes around 3-4 seconds for the database to open !!

How come? and can I do anything about it ?? - because offcourse I would like to keep the actions available to the users.

Subject: RE: Using Actionbar slows application ?!?

Actions, per se, don’t involve such a large performance cost as this. Questions:Do you have any hide formulas on these actions and if so, what are they?

Just how much code are you loading into memory every time the view opens?

How many script libraries do you use and how many levels deep? Having many script libraries can be a problem, especially if they call other script libraries.

If the latter is your problem, you can improve the situation by merging some script libraries. Even if you end up loading more code at runtime than you need for the specific application, you save time overall.

I’m not sure how much difference it makes to have several dozen Use statements for the same script library, as opposed to a single one in the Globals section, but that might make a difference.

If it’s still too slow to load, consider moving many of the actions into agents, so that the action button just uses formula to run the agent.

In version 7.0.3, I fixed a bug about the way view script is loaded into memory, which should speed them up in many cases.