<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello Pablo,<br>
<br>
Python is an expressive and highly dynamic language. As such it is
typically possible to achieve things in less lines of code and fewer
layers of architecture when writing idiomatic Python as compared to
idiomatic C#. With less code often comes better performance. This
really has been my experience and that of many people switching from
statically typed languages like C# and Java.<br>
<br>
*However*, if you transliterate C# code (particularly algorithmic code
as used by most synthetic benchmarks) to the direct equivalent in
IronPython you *will* see C# running considerably faster.<br>
<br>
The answer is three-fold:<br>
<br>
* You don't write the same code in C# and Python<br>
* With a less restrictive language and less verbose language you have
*more time* for performance optimisation - the bottlenecks in even
computationally expensive code is typically the *way* your algorithms
are implemented and *not* the language used<br>
* With IronPython integrating with C# is almost absurdly easy - so
moving your performance sensitive code into C# after appropriate
profilling and prototyping in IronPython is not hard<br>
<br>
Choosing a programming language based on its perceived performance
characteristics is a premature optimisation. <br>
<br>
All the best,<br>
<br>
Michael Foord<br>
<br>
On 14/04/2010 13:52, Pablo Dalmazzo wrote:
<blockquote cite="mid:SNT104-W149CCC1098BC6A19725803D0100@phx.gbl"
 type="cite">
  <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>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 <br>
  <hr>Con Hotmail no pierdas tiempo. Organiz&aacute; tus emails en carpetas y
encontralos r&aacute;pido. <a moz-do-not-send="true"
 href="http://www.descubrewindowslive.com/hotmail/organizacion.asp"
 target="_new">Conoc&eacute; c&oacute;mo</a>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a>
<a class="moz-txt-link-freetext" href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a>
  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.ironpythoninaction.com/">http://www.ironpythoninaction.com/</a></pre>
</body>
</html>