-
Alyssa Rosenzweig authored
Rather than O(N) each call, we can precompute the whole set - also O(N) - and then subsequent checks are O(1). Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <mesa!5123>
c24dfc9d
Rather than O(N) each call, we can precompute the whole set - also O(N) - and then subsequent checks are O(1). Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <mesa!5123>