Re: [IronPython] Accessing CPython from compiled assemblies

2009-09-17 Thread David Escobar
Of course, didn't think of that. I'll just copy over the modules I'm using and then run the pyc script on them along with my own program files. Thanks. On Thu, Sep 17, 2009 at 4:28 AM, Michael Foord wrote: > David Escobar wrote: > >> I'm using IronPython 2.6 B2 and accessing the CPython 2.6 libr

Re: [IronPython] Many small objects and memory footprint

2009-09-17 Thread Patrick DeschĂȘnes
My first tests with your method shows good improvement (2x) Thanks a lot, - Patrick On Thu, Sep 17, 2009 at 4:10 PM, Dino Viehland wrote: > One option is to define __slots__ on your classes and not include > __dict__ in the list of slots. This will limit the attributes you can store > on the

Re: [IronPython] Many small objects and memory footprint

2009-09-17 Thread Dino Viehland
One option is to define __slots__ on your classes and not include __dict__ in the list of slots. This will limit the attributes you can store on the object and the objects will all be stored in an array instead of a dictionary. __slots__ should include each attribute you want to be able to set

[IronPython] Many small objects and memory footprint

2009-09-17 Thread Patrick DeschĂȘnes
Hello, I'm currently using IronPython to manage a big tree of small objects. Everything works as fine but the memory usage is really huge (about 6x greater than the same program writtent in C#). I assumed the memory usage would be greater in dynamic language than in C#. Since I really need to ha

Re: [IronPython] Accessing CPython from compiled assemblies

2009-09-17 Thread Harry Pierson
FYI, I covered how to compile CPython python packages into a DLL for inclusion in my Pygments for WLWriter project. Relevant post is at http://devhawk.net/2009/08/10/Compiling+Python+Packages+Into+Assemblies.aspx Harry -Original Message- From: users-boun...@lists.ironpython.com [mailto

Re: [IronPython] Accessing CPython from compiled assemblies

2009-09-17 Thread Michael Foord
David Escobar wrote: I'm using IronPython 2.6 B2 and accessing the CPython 2.6 libraries in the standard way. import sys sys.path.append(r"c:\python26\lib") When I compile to an .exe, is there a way to link in the CPython libraries I'm using? Otherwise I get an ImportError when I run the app