Mahesh Reddy has uploaded this change for review. ( http://gerrit.cloudera.org:8080/22164
Change subject: KUDU-613: Vector optimizations ...................................................................... KUDU-613: Vector optimizations There are instances of Insert adjacent methods populating a vector with entries to be evicted under a lock. It's possible that these vectors have to re-allocate memory multiple times. This patch prevents that from happening by reserving memory beforehand. The method 'InsertAndReturnEvicted' returns a vector with the evicted entries. Rather than returning a copy of the vector, the vector of evicted entries is now a parameter to the function so it's passed by pointer. Change-Id: I0cb24b05724fdf5c1e975ac83c0cdc23c51f9f36 --- M src/kudu/util/slru_cache.cc M src/kudu/util/slru_cache.h 2 files changed, 32 insertions(+), 9 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/64/22164/1 -- To view, visit http://gerrit.cloudera.org:8080/22164 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I0cb24b05724fdf5c1e975ac83c0cdc23c51f9f36 Gerrit-Change-Number: 22164 Gerrit-PatchSet: 1 Gerrit-Owner: Mahesh Reddy <[email protected]>
