18

Performance and the Salesforce Governor Limits

In this chapter, we are going to begin Section 4 of this book, where we’ll focus on performance within Apex, how we can profile Apex, and how we can improve the performance of our applications.

As an area of study, performance is something I find fascinating as it contains several 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 ...

Get Mastering Apex Programming - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.