You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Did some testing on a hobby project to see how LinqGen would perform but ended up with slower/more memory heavy results.
Version used: v0.2.1
Default Linq query.
value
.OrderBy(x => x.timeMs).ThenBy(x => x.behavior).ThenBy(x => x.handType).ToArray();
LinqGen query.
value
.Gen().OrderBy(new TargetCueSelectors.SelectCueTimeMs()).ThenBy(new TargetCueSelectors.SelectCueBehavior()).ThenBy(new TargetCueSelectors.SelectCueHandType()).ToArray();
Default Linq LinqGen
Is there something I'm doing wrong? The only thing that stands out to me right now is the multiple "ThenBy"s.
The text was updated successfully, but these errors were encountered:
Thanks for reporting this. This is very interesting. It seems like comparing int to null in generic comparer causes boxing allocation in Debug setting. If it's in Release setting this consider always false and boxing doesn't happen. The benchmarks are in Release setting so I haven't noticed this. I will update the code to avoid this allocation in Debug setting as well.
It has been included in v0.2.2.
Allocation won't happen in Debug build and editor.
For performance profiling, please use Release mode without deep profiling in the Editor to get correct result.
Did some testing on a hobby project to see how LinqGen would perform but ended up with slower/more memory heavy results.
Version used: v0.2.1
Default Linq query.
LinqGen query.
Default Linq
LinqGen
Is there something I'm doing wrong? The only thing that stands out to me right now is the multiple "ThenBy"s.
The text was updated successfully, but these errors were encountered: