ASNA MobileRPG® Reference Manual
|
Optimizing the Speed of a Mobile RPG Site
The following is a short list of measures you can take to improve the speed of Mobile RPG pages, including tips for Compilation and Design Time and for Runtime.
Compilation and Design Time Optimization
- Ensure a fast connection from the build machine to the database server to speed up external file description access.
- Exceed recommendations for RAM, CPU count, and use Solid State Drives when possible, the more the better.
- Use a 64 bit machine and OS.
- If using Virtual Machines, provide pass-through disk I/O (configurable from within the Virtual Machine program).
- For
development environments,
- Set VS options to NOT build the web site when starting up debugger
- Don't build the website as part of the solution build.
- Break application into multiple logic assemblies and multiple View folders.
- Keep the size of the assemblies small.
- Break up the application into multiple solutions, include only those Views and Projects being worked on in each solution, other necessary programs/classes can be added as assembly references
- Use the Visual Studio configuration manager to build only the projects being worked on.
- Do not add references from the website to the logic assemblies to those projects included in the solution, instead have the output of the logic projects 'drop' the assembly directly to the 'Assembly Logic' folder under Bin.
Runtime Optimization
- Set DdsFile property:
PopUpWindows
to false. This will avoid what may be the most time-consuming job for the browser, to save the all the HTML into a long string and encode it using Base64. Warning – if this property is set to false, the Window records will not show the correct 'background' HTML. - Set on LR at the end of the programs to release memory and help free up space in the session. (This could have the reverse effect).
- Disable the idle time out setting in the application pool.
- Use IIS 8.0 Application Initialization. http://www.iis.net/learn/get-started/whats-new-in-iis-8/iis-80-application-initialization.
- Open files when required not in the constructor.
- Set
Debug=FALSE
in web.config (may be able to use 'web config transformation files'). - Optimize your ASP.NET Website and Web Server. While many resources can be found online to help with this effort, we recommend the advice of Dean Hume (http://deanhume.com) and his book Fast ASP.NET Webpages (© 2013). It contains a wealth of up to date information on optimizing site speed, and we make use of it internally.