disabling warnings before getting the types (they are restored right after)
using faster string comparison operation
no longer using the InspectedType to get information on the type. This had the biggest impact.
This is pretty fast now, just a few seconds. We lose the caching provided by the InspectedType, but this is just used to check if the type is a collection, so it was worth it.
Made the following changes:
disabling warnings before getting the types (they are restored right after)
using faster string comparison operation
no longer using the InspectedType to get information on the type. This had the biggest impact.
This is pretty fast now, just a few seconds. We lose the caching provided by the InspectedType, but this is just used to check if the type is a collection, so it was worth it.