
Mastering Apex Programming
By :

In this chapter, we are going to begin our third and final section of the book, where we focus on performance within Apex, how we can profile Apex, and how we can improve the performance of our applications.
Performance as an area of study is something I find fascinating as it contains a number of unique overlaps from both the human and technical sides of software development. Improving performance for the sake of it is likely to lead to code that is much more difficult to maintain and manage going forward. Applications that do not take performance into account will quickly become slow and provide a negative user experience.
For Salesforce applications in particular, code tends to not receive much maintenance after it has been written and deployed, particularly in circumstances where a customer has paid a consultancy to deliver a piece of functionality in a one-off project. I often encounter organizations that contain...