Re: Python extension performance

2005-04-09 Thread David Jones
Jack Diederich wrote: On Fri, Apr 08, 2005 at 10:14:52PM -0400, David Jones wrote: I am trying to hunt down the difference in performance between some raw C++ code and calling the C++ code from Python. My goal is to use Python to control a bunch of number crunching code, and I need to show that

Re: Python extension performance

2005-04-09 Thread "Martin v. Löwis"
David Jones wrote: > Both the C++ executable and python module were linked from the same > object files, and linked with the same options. The only difference is > that the Python module is linked with -shared, and the C++ code is not. [...] > Some potential causes of my problems: > > - linking t

Re: Python extension performance

2005-04-08 Thread Jack Diederich
On Fri, Apr 08, 2005 at 10:14:52PM -0400, David Jones wrote: > I am trying to hunt down the difference in performance between some raw > C++ code and calling the C++ code from Python. My goal is to use Python > to control a bunch of number crunching code, and I need to show that > this will not

Python extension performance

2005-04-08 Thread David Jones
Hi, I am trying to hunt down the difference in performance between some raw C++ code and calling the C++ code from Python. My goal is to use Python to control a bunch of number crunching code, and I need to show that this will not incur a (big) performance hit. This post includes a description