Lazy loading of TypeDefinition

7 views
Skip to first unread message

Anatoly

unread,
Nov 19, 2009, 9:04:53 AM11/19/09
to mono-cecil
Hello,
For performace I'd like initially to load only type's names/fullnames.
The other information (fields, properties,methods) I'd like to load
later (when considering the given type). Is this scenario possible in
Mono.Cecil?

Lotfi Gheribi

unread,
Nov 19, 2009, 9:22:11 AM11/19/09
to mono-...@googlegroups.com
Mono does not contain APIs for getting such information without loading the type hierarchy.
However, it uses lazy loading for other stuff like method bodies...

If performance is an absolute requirement, you may consider implementing your own optimized routines

Jb Evain

unread,
Nov 19, 2009, 9:23:57 AM11/19/09
to mono-...@googlegroups.com
Hey Anatoly,
Right now Cecil aggresively loads everything. Its next version is
allows you to load metadata lazily. I suggest you use the current
version of Cecil, and try the next version as soon as it's out.

--
Jb Evain <j...@nurv.fr>
Reply all
Reply to author
Forward
0 new messages