How to write Inline Functions in Python?

Neil Hodgson nhodgson at bigpond.net.au
Thu Nov 14 06:17:56 EST 2002


David Brown:

> As long as C(++) compilers
> still generate seperate completed object code modules that are only
> collected by a linker, then you are going to get a performance hit
whenever
> a small function from one module is used by a function in another module.

   Current compilers are able to inline across compilation units. See, for
example,
http://msdn.microsoft.com/msdnmag/issues/02/05/Hood/default.aspx
   although IIRC other compilers beat MSVC to this particular optimization.

   Neil





More information about the Python-list mailing list