We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5b051c commit 6860518Copy full SHA for 6860518
README.md
@@ -582,7 +582,14 @@ Python 3.
582
execution.
583
584
585
-### []()
586
-
+### [item 58: Profile before optimizing](item_58_profile_before_optimizing.py)
+- 1. It's import to profile Python programs before optimizing because the
587
+ source of slowdowns is often obscure.
588
+- 2. Use the cProfile module instead of the profile module because it provides
589
+ more accurate profiling information.
590
+- 3. The Profile object's runcall method provides everything you need to
591
+ profile a tree of function calls in isolation.
592
+- 4. The Stats object lets you select and print the subset of profiling
593
+ information you need to see to understand your program's performance.
594
595
### []()
0 commit comments