Closed neuecc closed 8 years ago
This line using object.Equals(object) https://github.com/neuecc/UniRx/blob/e3cbc24a17c122511c02054a0571ae9e30ad1a6c/Assets/UniRx/Scripts/UnityEngineBridge/ReactiveProperty.cs#L80 It cause boxing if T is ValueType.
Why I avoid EqualityComparer<T>.Default? The reason is for iOS/AOT, but I dropped AOT support in 5.0.0 so I can use EqualityComparer<T>.
EqualityComparer<T>.Default
EqualityComparer<T>
I'll change all boxing equals.
5.1.0 has been released.
This line using object.Equals(object) https://github.com/neuecc/UniRx/blob/e3cbc24a17c122511c02054a0571ae9e30ad1a6c/Assets/UniRx/Scripts/UnityEngineBridge/ReactiveProperty.cs#L80 It cause boxing if T is ValueType.
Why I avoid
EqualityComparer<T>.Default
? The reason is for iOS/AOT, but I dropped AOT support in 5.0.0 so I can useEqualityComparer<T>
.I'll change all boxing equals.