Re: [IronPython] Performance of dir

2009-05-24 Thread Curt Hagenlocher
The first time you do a dir() of Form, we have to use Reflection to introspect - every member on Form - every member on ContainerControl - every member on ScrollableControl - every member on Control - every member on Component (aka the inheritance hierarchy of Form :D ) After that, the members

Re: [IronPython] Performance of dir

2009-05-24 Thread Michael Foord
Curt Hagenlocher wrote: The first time you do a dir() of Form, we have to use Reflection to introspect - every member on Form - every member on ContainerControl - every member on ScrollableControl - every member on Control - every member on Component (aka the inheritance hierarchy of Form :D )

Re: [IronPython] Performance of dir

2009-05-24 Thread Dino Viehland
6:21 AM To: Discussion of IronPython Subject: Re: [IronPython] Performance of dir Curt Hagenlocher wrote: The first time you do a dir() of Form, we have to use Reflection to introspect - every member on Form - every member on ContainerControl - every member on ScrollableControl - every

Re: [IronPython] Performance of dir

2009-05-24 Thread Michael Foord
] Performance of dir Curt Hagenlocher wrote: The first time you do a dir() of Form, we have to use Reflection to introspect - every member on Form - every member on ContainerControl - every member on ScrollableControl - every member on Control - every member on Component (aka the inheritance

[IronPython] Performance of dir

2009-05-23 Thread Michael Foord
Hello all, On IronPython 2.0.1 the last line of this code takes ~4 seconds the first time it is executed: import clr clr.AddReference('System.Windows.Forms') from System.Windows.Forms import * dir(Form) Form.__dict__.keys() (which for a .NET type is equivalent) takes ~1 second or less.

Re: [IronPython] Performance of dir

2009-05-23 Thread Michael Foord
Michael Foord wrote: Hello all, On IronPython 2.0.1 the last line of this code takes ~4 seconds the first time it is executed: import clr clr.AddReference('System.Windows.Forms') from System.Windows.Forms import * dir(Form) Form.__dict__.keys() (which for a .NET type is equivalent)