Skip to content

Commit 53164e8

Browse files
committed
Add measurement for last five imports
1 parent a479fa9 commit 53164e8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

speedup_import.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,11 @@ $ ./mtime.sh ~/.pyenv/versions/cmd2-3.6/bin/python -c "import cmd2"
5656
100 iterations
5757
average: real 0.131 user 0.090 sys 0.030
5858
```
59+
60+
## Defer atexit, codes, signal, tempfile, copy
61+
62+
In commit a479fa94 we defer 5 imports: atexit, codecs, signal, tempfile, and copy.
63+
```
64+
$ ./mtime.sh ~/.pyenv/versions/cmd2-3.6/bin/python -c "import cmd2"100 iterations
65+
average: real 0.120 user 0.081 sys 0.021
66+
```

0 commit comments

Comments
 (0)