Chapter 9
Answer 1
There are multiple factors that can be a cause of performance bottlenecks inside an application, including the following:
- Inadequate planning of hardware resources required to run an application
- Poor choice of algorithms for implementing a functionality in the application
- Improperly implemented database relations with a lot of redundancy
- Not implementing proper caching for frequently accessed data
Answer 2
Time profiling on a method in Python helps us to understand how much time was taken by the method to execute. Based on the requirements, there are...