Commits

Martin Geisler  committed b5d69a1

Better intro for demandimport slide

  • Participants
  • Parent commits 5300661

Comments (0)

Files changed (1)

File python-hg-talk.tex

 %\end{frame}
 
 \begin{frame}[fragile]{Making Mercurial Start Fast}
-
-  Starting Python:
-\begin{lstlisting}
-$ time python -E -c 'pass'
-0.01s user 0.00s system 88% cpu |red>0.009 total
-\end{lstlisting}
+  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}
 
 \pause