Python speed vs csharp

Steve Horsley steve.horsley1 at virgin.NO_SPAM.net
Thu Jul 31 13:43:09 EDT 2003


On Wed, 30 Jul 2003 23:09:22 -0700, Mike wrote:

> Bear with me: this post is moderately long, but I hope it is relatively
> succinct. 
> 
> I've been using Python for several years as a behavioral modeling tool for
> the circuits I design. So far, it's been a good trade-off: compiled C++
> would run faster, but the development time of Python is so much faster, and
> the resulting code is so much more reliable after the first pass, that I've
> never been tempted to return to C++. Every time I think stupid thoughts
> like, "I'll bet I could do this in C++," I get out my copy of Scott Meyers'
> "Effecive C++," and I'm quickly reminded why it's better to stick with
> Python (Meyers is a very good author, but points out lots of quirks and
> pitfalls with C++ that I keep thinking that I shouldn't have to worry
> about, much less try to remember). Even though Python is wonderful in that
> regard, there are problems.
>

It might be worth having a look ay Jython. This allows python code to run
on a java VM by emitting JVM bytecode rather than standard python
interpreter bytecode. This gives you all the hotspot optimisations that
have been invested in java runtime performance. 

Steve




More information about the Python-list mailing list