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 | 0b535a371fd1a55b18ff7e049d4652c610fe1952 (patch) | |
| tree | 39e6a9f9e0310bd98c24a739b9ad0bb757c9637b /src/core/file_sys/program_metadata.cpp | |
| parent | d9917dd09cda10901cbcc48becdddbc90650e58c (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/file_sys/program_metadata.cpp')
0 files changed, 0 insertions, 0 deletions
