8

Performance Patterns

In the previous chapter, we covered concurrency and asynchronous patterns, useful for writing efficient software that can handle multiple tasks at once. Next, we are going to discuss specific performance patterns that help enhance the speed and resource utilization of applications.

Performance patterns address common bottlenecks and optimization challenges, providing developers with proven methodologies to improve execution time, reduce memory usage, and scale effectively.

In this chapter, we’re going to cover the following main topics:

  • The Cache-Aside pattern
  • The Memoization pattern
  • The Lazy Loading pattern

Technical requirements

See the requirements presented in Chapter 1. The additional technical requirements for ...

Get Mastering Python Design Patterns - Third 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.