diff options
author | Lioncash <mathew1800@gmail.com> | 2021-04-23 09:24:19 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2021-04-23 09:24:21 -0400 |
commit | 5ba49f188bf39cdfc71a6b78d7d846b4b0725dc3 (patch) | |
tree | 39e6a9f9e0310bd98c24a739b9ad0bb757c9637b /src/core/loader/kip.cpp | |
parent | 6e2040c9551422307920a708773e0099222470a6 (diff) |
lm: Prevent redundant map lookups in Log()
We can perform the lookup and then do the contains check by checking the
end iterator. The benefit of this is that if we *do* find an entry, then
we aren't hashing into the map again to find it.
We can also get rid of an unused std::vector temporary while we're at
it.
Diffstat (limited to 'src/core/loader/kip.cpp')
0 files changed, 0 insertions, 0 deletions