]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Add final annotations to some cache functions (#5156)
authorSiying Dong <siying.d@fb.com>
Fri, 5 Apr 2019 23:05:10 +0000 (16:05 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 5 Apr 2019 23:08:01 +0000 (16:08 -0700)
commit479c566771d6464785f205a368701c689e094fe5
tree377e7441b792894f57ee3b59d67dd7d21754ef7a
parent8d1e52165d610a034796c282c8cac5668ae9b0cb
Add final annotations to some cache functions (#5156)

Summary:
cache functions heavily use virtual functions.
Add some "final" annotations to give compilers more information
to optimize. The compiler doesn't seem to take advantage of it
though. But it doesn't hurt.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/5156

Differential Revision: D14814837

Pulled By: siying

fbshipit-source-id: 4423f58eafc93f7dd3c5f04b02b5c993dba2ea94
cache/clock_cache.cc
cache/lru_cache.h