Python and STL efficiency

Ray ray_usenet at yahoo.com
Tue Aug 22 04:37:10 EDT 2006


Fredrik Lundh wrote:
> Ray wrote:
>
> >> in the C++ example, you're creating 40000 string objects.
> >
> > In which case, Licheng, you should try using the /GF switch. This will
> > tell Microsoft C++ compiler to pool identical string literals together.
>
> in what way does that change the implementation of C++'s string type ?

Ah, yes what was I thinking? The fact that it stores std::string
objects escaped my mind somehow. /GF just pools the string literals.
Thanks for the correction.

> 
> </F>




More information about the Python-list mailing list