ashb commented on issue #15833: URL: https://github.com/apache/airflow/issues/15833#issuecomment-841231592
No, `importlib` and `imp` use roughly the same code under the hood. The "expensive" part is not the method used to load the module, but what ever your module is doing. If it is taking 1 minute to load your DAG file, then I suggest moving imports or code execution out of the top level of the module. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org