26.1 Introduction

In certain computational environments, performance is a nuanced term that can refer to time and space constraints. How performant software is might refer to how much memory is needed to run it or how many operations are used per object to run a computation.

On the web, performance is one thing: speed. When we talk about optimizing performance on a website, what we are talking about is making the site take less time to return information to the user. The rule of thumb is to take less that 200 milliseconds to receive, compute, and return data to the user. Two hundred milliseconds is not a lot of time, and sometimes, following this rule of thumb can be quite challenging.

When discussing performance and optimization, developers ...

Get Django Unleashed 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.