Remove System.debugs

System.debugs statements are a straightforward way to debug our Apex code, but...

System.debugs statements are a straightforward way to debug our Apex code, but...

Did you know that System.debug can significantly affect Apex code performance?

apex
System.debug('Here');
System.debug('My Debug');
System.debug('Account ==> ' + acc);

Debugs that contain complex data types have the most significant impact on performance. Values need to be converted to a String to pass them as parameters to System.debug.

If there is no specific reason to keep debugs in your code, you should always remove them!

Text and code were extracted from the original slide. Plain-text version of the whole catalog