Hi, First I want to say that I'm still very new to Cecil and if the following questions are somehow basics it's because i haven't been able to find any documentation on the subject and worked only by using the API reference .
I'm trying to switch from reflection to cecil and I'm encountering some performance issues. When I used reflection the assembly was loaded once to the app domain and after that i got fast enough access to any type of that assembly. When i switched to Cecil i have not implemented any kind of cache which resulted in long times loading the AssemblyDefinition for each object. seeing that, I decided to implement a cache and store the AssemblyDefinition objects in it. The next problem was that i get an OutOfMemoryException (I'm loading more then one assembly). I feel like I'm missing something here. Is there a way to load a single TypeDefinition ? is there a way to load only part of the AssemblyDefinition ? are there any benchmarks for working with cecil ? is there a different entry point to the objects besides AssemblyFactory.Get.... ? Thanks in advance, Izik Shmulewitz. --~--~---------~--~----~------------~-------~--~----~ -- mono-cecil -~----------~----~----~----~------~----~------~--~---
