diff options
author | Lioncash <mathew1800@gmail.com> | 2020-07-20 17:40:04 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-07-20 17:48:00 -0400 |
commit | 26c6c71837728f8348602474f2dc884a1da0664e (patch) | |
tree | bafb61af6a4b7f6093d65ac650ab946d9fa537af /src/common/virtual_buffer.cpp | |
parent | ad0b2951250979549082fdef3ba4fd93a720b5df (diff) |
buffer_cache: Eliminate redundant map lookup in MarkRegionAsWritten()
We can make use of emplace()'s return value to determine whether or not
we need to perform an increment.
emplace() performs no insertion if an element already exist, so this can
eliminate a find() call.
Diffstat (limited to 'src/common/virtual_buffer.cpp')
0 files changed, 0 insertions, 0 deletions