[linker] Add Mono.Cecil.*.Has* checks when comparing methods/types
authorSebastien Pouliot <sebastien@xamarin.com>
Tue, 23 Jun 2015 17:03:10 +0000 (13:03 -0400)
committerSebastien Pouliot <sebastien@xamarin.com>
Tue, 23 Jun 2015 17:03:10 +0000 (13:03 -0400)
commiteaee29fbd7a6d0b470e7a33e80bbab11a3200ef8
treefd36d96729c8c6a46131797ca4df33134223fae4
parent5c4a0c67a99bd0853f0752155b7a8b878b0616a2
[linker] Add Mono.Cecil.*.Has* checks when comparing methods/types

* It reduce memory allocations by avoiding the creation of empty
  collections (only used to tell us there's a Count of 0);

* It also speed up execution, less object creation/GC time;

* Patch also remove some double-casts (is + as/cast)
mcs/tools/linker/Mono.Linker.Steps/TypeMapStep.cs