Igor Canadi b13bdfa500 Add a call DisownData() to Cache, which should speed up shutdown
Summary: On a shutdown, freeing memory takes a long time. If we're shutting down, we don't really care about memory leaks. I added a call to Cache that will avoid freeing all objects in cache.

Test Plan:
I created a script to test the speedup and demonstrate how to use the call: https://phabricator.fb.com/P3864368

Clean shutdown took 7.2 seconds, while fast and dirty one took 6.3 seconds. Unfortunately, the speedup is not that big, but should be bigger with bigger block_cache. I have set up the capacity to 80GB, but the script filled up only ~7GB.

Reviewers: dhruba, haobo, MarkCallaghan, xjin

Reviewed By: dhruba

CC: leveldb

Differential Revision: https://reviews.facebook.net/D15069
2014-01-24 14:57:52 -08:00
..
2014-01-10 17:56:35 +08:00
2014-01-06 11:11:19 -08:00
2013-10-23 14:38:52 -07:00
2013-11-16 11:21:34 +00:00
2013-12-09 14:06:52 -08:00
2013-12-09 14:06:52 -08:00
2013-12-11 11:18:00 -08:00
2013-11-07 11:31:56 -08:00
2014-01-17 12:46:06 -08:00
2014-01-17 12:46:06 -08:00
2013-12-03 12:42:15 -08:00
2014-01-17 12:46:06 -08:00