278 views
in Embedded Wizard Studio by
Hello there, we have very complex menu which is defined by our external program and we need to display it via Embedded Wizard. We made script which transforms our XML menu into specific code which is compatible with methods created in Embedded Wizard. These methods are just creating classic visual components. Our menu is so complex and we have a problem with performance. Generated code which is pasted into Embedded Wizard contains 13k lines and processing last several seconds.

Is there any way how to speed up creating visual components dynamically? Is it slow because we creating visual components dynamically? It will be faster if we create whole menu manually just in Embedded Wizard?

Thank you for clarification.

1 Answer

0 votes
by
 
Best answer

Hello,

it is difficult to give you a concrete tip without having understood your implementation. Especially the aspect of XML generated code sounds diffuse for me. Generally, Embedded Wizard is already well optimized. If we focus on the dynamic creation of objects or loading of resources, I don't see any possibility to speed up them. What you could try is to review the structure of the visual components. Maybe they are unnecessarily complex?

However, I suppose, the actual problem is caused by the amount of visual components you try to create at once. Assuming you have a menu with 100 menu items, in your implementation all 100 items need to be created before the menu is shown. This will take its time. Such application cases could be better implemented if you instantiate only those menu items, which are actually visible on the screen. Please take a look at the Vertical List component. It implements mechanisms to manage only those list items which are actually visible. When the user scrolls the list, new items are instantiated on demand while old items are released. You can try to implement similar approach by involving your XML data base.

Best regards

Paul Banach

by
Thank you for your answer. I expected similar answer but we needed assurance that using dynamic creation of visual components is ok for this case.

Regards

Jakub Jirgl

Embedded Wizard Website | Privacy Policy | Imprint

...