The following are some of the scenarios where we can see the performance issues in Scripting:
1. If we write code there like WebApplet_Load, WebApplet_PreCanInvokeMethod and BusComp_PreGetFieldValue etc.
WebApplet_PreCanInvokeMethod , this is frequently fired in response to user actions.
In version 8.0 and above, instead of using PreCanInvokeMethod to enable a custom method, this can be done using “CanInvokeMethod” user on the applet user property. For example: Name: CanInvokeMethod: Test Value: Y.
PreGetFieldValue event, it is called every time the user interface is updated to repaint the fields and also be called in other internal uses.
2. If you logic is having frequent travel between Server and Browser script.
3. Memory variables are not released in finally block.
4. Frequent travel to database (Get,Set,Query) instead of storing data in buffer.
5. Script is not using proper execution identifiers like forward only, backward only.
6. Not using Switch and using if extensively.
No comments:
Post a Comment