Skip to content

Commit 953fbde

Browse files
committed
Add measurement for extraction of AddSubmenu()
1 parent ccfdf0f commit 953fbde

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

speedup_import.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,13 @@ $ ./mtime.sh ~/.pyenv/versions/cmd2-3.6/bin/python -c "import cmd2"
7373
100 iterations
7474
average: real 0.115 user 0.080 sys 0.020
7575
```
76+
77+
# extract AddSubmenu to its own file
78+
79+
In commit ccfdf0f9 we extract AddSubmenu() to it's own file, so it is not
80+
imported or processed by default.
81+
```
82+
./mtime.sh ~/.pyenv/versions/cmd2-3.6/bin/python -c "import cmd2"100 iterations
83+
average: real 0.117 user 0.081 sys 0.021
84+
```
85+

0 commit comments

Comments
 (0)