[C++-sig] which has a faster execution time?

Scott Kaplan pythondeveloper at gmail.com
Mon Jul 25 17:45:02 CEST 2005

Thanks Stefan.  The more I think about it, it doesn't really make
sense to talk about a C++ app when developing a website.  It makes
more sense to write C++ to extend Python.

On 7/22/05, Stefan Seefeld <seefeld at sympatico.ca> wrote:
> Scott Kaplan wrote:
> > I am new to Python, but I am an experienced c++ developer.
> >
> >>From the research that I have done on Python, it appears that I can
> >
> > 1) Embed Python into a C++ application or
> > 2) write c++ modules to extend Python
> >
> > Which one, if either, will has better performance.
> I don't quite understand the question. It appears you are trying
> to compare apples and oranges.
> The two techniques you are referring to serve quite distinct
> use cases. The former is a means to provide scripting capabilities
> to a C++ application, so the concern is hardly performance.
> The latter lets a python application run code implemented in C++,
> which typically results in much better performance compared to
> the same functionality being implemented and run in python.
> If you could describe what problem you are trying to solve
> it might be easier to suggest what approach to take, but if
> the question is strictly about how to gain performance in
> a pure python environment, using C++ extension modules sounds
> like a good idea.
> HTH,
>                Stefan

More information about the Cplusplus-sig mailing list