Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid unnecessary copy value and map.find in lru_cache #859

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cheerconi
Copy link

The operator[] is a find-or-add operator. Use m_map.emplace to avoid add operation. And use i->second.second to avoid find operation.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.006%) to 84.013% when pulling d0e7f5a on cheerconi:master into 36c8913 on boostorg:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants