Commit 26c6c718 authored by Lioncash's avatar Lioncash
Browse files

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.
parent ad0b2951
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment