haroohie-club/SerialLoops

Replace .First(idx => Index == idx) lookups with direct indexing

Closed this issue · 0 comments

In the chokuretsu lib, there's currently a lot of places where we look up items by comparing their index to the lookup value via LINQ. This is slower than indexing directly and virtually always the index pattern is rawIndex + 1. If we direct index, we will likely see significant perf gains with no real loss in functionality.