|
36 | 36 | from lib.core.data import logger |
37 | 37 |
|
38 | 38 | try: |
39 | | - from lib.controller.controller import start |
40 | 39 | from lib.core.common import banner |
41 | 40 | from lib.core.common import checkIntegrity |
42 | 41 | from lib.core.common import createGithubIssue |
|
58 | 57 | from lib.core.exception import SqlmapUserQuitException |
59 | 58 | from lib.core.option import initOptions |
60 | 59 | from lib.core.option import init |
61 | | - from lib.core.profiling import profile |
62 | 60 | from lib.core.settings import GIT_PAGE |
63 | 61 | from lib.core.settings import IS_WIN |
64 | 62 | from lib.core.settings import LEGAL_DISCLAIMER |
65 | 63 | from lib.core.settings import THREAD_FINALIZATION_TIMEOUT |
66 | 64 | from lib.core.settings import UNICODE_ENCODING |
67 | 65 | from lib.core.settings import VERSION |
68 | | - from lib.core.testing import smokeTest |
69 | | - from lib.core.testing import liveTest |
70 | 66 | from lib.parse.cmdline import cmdLineParser |
71 | 67 | except KeyboardInterrupt: |
72 | 68 | errMsg = "user aborted" |
@@ -142,6 +138,12 @@ def main(): |
142 | 138 | dataToStdout("[!] legal disclaimer: %s\n\n" % LEGAL_DISCLAIMER, forceOutput=True) |
143 | 139 | dataToStdout("[*] starting at %s\n\n" % time.strftime("%X"), forceOutput=True) |
144 | 140 |
|
| 141 | + # Delayed imports (33% of all imports) |
| 142 | + from lib.controller.controller import start |
| 143 | + from lib.core.profiling import profile |
| 144 | + from lib.core.testing import smokeTest |
| 145 | + from lib.core.testing import liveTest |
| 146 | + |
145 | 147 | init() |
146 | 148 |
|
147 | 149 | if conf.profile: |
|
0 commit comments