mono/MonoGame — pull request #3077 by prollin (2014-10-14 01:25:52+00:00)
Title: Reduce allocations in GraphicsDevice.PlatformApplyRenderTargets()

Specialized the ArrayEqualityComparer to avoid allocations in EqualityComparer.Equals(). GetHashCode() is also slightly faster.
Those methods are called each time GraphicsDevice.glFramebuffer.TryGetValue() is called in PlatformApplyRenderTargets() meaning it is called each frame and can result in quite a bit of memory allocations.