diff options
| author | Lioncash <mai.iam2048@gmail.com> | 2024-01-23 17:15:21 -0500 |
|---|---|---|
| committer | Lioncash <mai.iam2048@gmail.com> | 2024-01-23 17:21:22 -0500 |
| commit | 6cb33896962a402b1aeee5852816669cf9218fab (patch) | |
| tree | 93e5d8e2ac35903ed93aee04378a8d7851448e0a /Source/Core/VideoCommon/GraphicsModSystem/Config/GraphicsMod.cpp | |
| parent | f2292467ad54da9e577aaea2cb3fadc232ee7ebe (diff) | |
CodeTrace: Use std::set::lower_bound() over std::lower_bound()
std::set's lower_bound() is optimized better than the generic
implementation of std::lower_bound()
std::lower_bound() works best on random access iterators, where the
number of comparisons can be logarithmic. However, since std::set's
iterators are bidirectional iterators, the comparisons will actually be
linear in practice when using std::lower_bound().
So, we can use std::set's version which is guaranteed to be logarithmic.
Diffstat (limited to 'Source/Core/VideoCommon/GraphicsModSystem/Config/GraphicsMod.cpp')
0 files changed, 0 insertions, 0 deletions
