1. Martin Geisler
  2. python-hg-talk


Martin Geisler  committed b5d69a1

Better intro for demandimport slide

  • Participants
  • Parent commits 5300661
  • Branches default

Comments (0)

Files changed (1)

File python-hg-talk.tex

View file
 \begin{frame}[fragile]{Making Mercurial Start Fast}
-  Starting Python:
-$ time python -E -c 'pass'
-0.01s user 0.00s system 88% cpu |red>0.009 total
+  When you do \code{import foo}, Python does:
+  \begin{itemize}
+  \item search for \code{foo.py}, \code{foo.pyc}, and \code{foo.pyo}
+  \item see if \code{foo.py} is newer than \code{foo.pyc} or \code{foo.pyo}
+  \item load and execute found module
+  \item do the whole thing recursively\dots
+  \end{itemize}