mirror of https://github.com/icsharpcode/ILSpy.git
Browse Source
DecodeArrayInitializer - Instead of relying on the Add method of a list to expand the underlying array when necessary, the code now allocates a big enough array to fit all the elements removing the need for the Add method to expand the array several times. BlockFromInitializer now reuses a single instance of List<ILInstruction> instead of reallocating a new one every time and clears it when necessary. The same pre-allocation approach mentioned above has been implemented here too.pull/2731/head
2 changed files with 34 additions and 2 deletions
Loading…
Reference in new issue