Performance suggestions on loading installable cloud apps for the first time

When an end user starts an installable cloud app for the first time, a number of files will be downloaded from the web server to the client machine, such as Cloud App Launcher, runtime files, the app files, and image files. The downloading performance depends on the network status for sure. Besides, you need to plan the download timing carefully through the relevant PowerServer project settings. Specifically:

  • Consider whether to enable or disable the security-strengthening options. These options will add some time marginal time. If judging from the nature of your application, security is not a major concern, you may disable them.

    • In the project settings | General tab, the option "Encrypt all the compiled p-code files"

    • In the project settings | Run Options, the option "Validate the application integrity before the app runs"

  • Consider whether to download the files as necessary, or at the app startup. The total time is no different, but you may want to shorten the initial waiting time for the users. The relevant options are:

    • In the project settings | External Files tab, the option to add images and videos in the "Images/videos dynamically loaded" section;

    • In the project settings | Client Deployment tab, the options "Download the app files as necessary" and "Download all the app files at app startup".

      If you select the "Download the app files as necessary", the following files will be downloaded before the app runs: 1) The PowerBuilder Runtime files; 2) The application executable; and 3) The files you selected to be preloaded in the External Files settings. The other files are downloaded only when they are called by the app.

      If you select the "Download all the app files at app startup", the runtime files, app executable, the application files, and external files are all downloaded at the startup, except for the image files that are set as “dynamically-loaded” in the External Files settings.

      Note that usually, if you have already run certain function of an application, when you run it again, there is no need to download any additional files.

  • Consider to transfer external files as compressed packaged or in uncompressed format. If an external file/file folder will not change after downloaded to the client, add them to the "Files preloaded as compressed packages" section; if some external file will change often such as config files (XML, INI, etc.), add them to the "Files preloaded in uncompressed format" section.

  • Minimize the files that shall be downloaded to the client. For example, in the project settings | Runtime, make sure that only the required runtime modules are selected.