<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>It&#8217;s certainly true that we both inherit a lot of characteristics
from our underlying platform.  For example we get a JIT which we can use to compile
Python code whenever we want it and they get a highly optimizing ahead of time
compiling which they can use for optimized data structure implementations.  We
get GC which gives us good and fast memory management but they need to
implement ref counting which lets them play tricks with re-using objects rather
than frequently re-allocating.  <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>But I think it&#8217;s probably too much of a simplification.  Looking
at the gaps the difference between CPython and C is huge and so is the difference
between IronPython and C# but the differences between CPython and IronPython are
mixed.  CPython is much faster on certain things, IronPython is much faster on
other things.  In some ways the comparison would imply that you could compare C
to C# performance to understand the performance differences of CPython and IronPython
and I don&#8217;t think that would really be of much use.  We both have our own
bags of tricks which are built on top of the underlying language.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>It&#8217;s hard to get into technical details with such a broad
topic but I&#8217;d say all of the DLR features that revolve around one
optimization or another show differences from C#.  For example consider the
interpreter and the adaptive compiler or even the call site caching which C#
has now picked up for its dynamic feature.  And I expect the DLR to continue to
grow new features which differentiate it from plain old static C#.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
users-bounces@lists.ironpython.com [mailto:users-bounces@lists.ironpython.com] <b>On
Behalf Of </b>Pablo Dalmazzo<br>
<b>Sent:</b> Wednesday, April 14, 2010 4:52 AM<br>
<b>To:</b> IronPython Mailing list<br>
<b>Subject:</b> [IronPython] is the performance gap between C and CPython a
decent comparision between the performance gap between C# and IronPython?<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Hi
there,<br>
<br>
I was replied in one of my topics in StackOverflow that the gap performance
between C with cPython&nbsp; is comparable with the performance gap between
with C# with IronPython by some guy I dont know who he is. It could be a
newbie, it could not. Now since the base language/platform are very differents
my guess is his comparision is way off, but since I hadnt have time to take a
look to the IronPython sourcecode at all, even if I want to do it soon, I have
no idea if what he says has any sense or not. Now it's a known fact the gap
between C and (c)Python is huge, is that a decent comparision of the level of
performance difference between C# and IronPython? I think if it's not, someone
should reply him with some technical(s) details why not, I was asked if that
was true by a programmer friend and she didnt got much confidence in IronPython
by reading that<br>
<br>
Greetings, Pablo <o:p></o:p></span></p>

<div class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>

<hr size=2 width="100%" align=center>

</span></div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Con
Hotmail no pierdas tiempo. Organizá tus emails en carpetas y encontralos
rápido. <a href="http://www.descubrewindowslive.com/hotmail/organizacion.asp"
target="_new">Conocé cómo</a><o:p></o:p></span></p>

</div>

</div>

</body>

</html>