Re: [Tutor] Memory usage (Lizhi Yang)

2009-10-08 Thread Adam Bark
2009/10/8 Lizhi Yang > Hi Adam, > > One more question, if I want to implement algorithms and load the huge > amount of data using C++, but using Python as the glue language to > implement other functionality such as Gui and txt processing, you > think Boost.python is better or SWIG is better? Hav

[Tutor] Memory usage (Lizhi Yang)

2009-10-08 Thread Lizhi Yang
Below you see my original post. 1: Say I use boost.python. 2: For example, I allocate a big array with integers using C++ function (4 bytes for each int in C++, but 12 bytes in python), and I use boost.python to call those C++ functions. How is the memory allocation for that array then? My last

Re: [Tutor] Memory usage

2009-10-07 Thread Stefan Behnel
Lizhi Yang wrote: > Confused. If I create some functions using C++ to load the data into > memory and use python to call those functions, what is the memory > usage then? First (obvious) question: how do you call those functions? Do you use ctypes? Cython? Some other way? Providing a short code s

[Tutor] Memory usage

2009-10-07 Thread Lizhi Yang
Hi, Confused. If I create some functions using C++ to load the data into memory and use python to call those functions, what is the memory usage then? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.pytho