Siying Dong
18df47b79a
Avoid malloc in NotFound key status if no message is given.
...
Summary:
In some places we have NotFound status created with empty message, but it doesn't avoid a malloc. With this patch, the malloc is avoided for that case.
The motivation of it is that I found in db_bench readrandom test when all keys are not existing, about 4% of the total running time is spent on malloc of Status, plus a similar amount of CPU spent on free of them, which is not necessary.
Test Plan: make all check
Reviewers: dhruba, haobo, igor
Reviewed By: haobo
CC: leveldb
Differential Revision: https://reviews.facebook.net/D14691
2013-12-26 16:23:10 -08:00
..
2013-11-25 10:38:15 -08:00
2013-11-12 20:05:28 -08:00
2013-12-10 10:48:35 +02:00
2013-12-15 13:47:06 -08:00
2013-10-28 17:54:09 -07:00
2013-12-18 16:54:53 -08:00
2013-11-08 15:23:46 -08:00
2013-12-11 11:37:28 -08:00
2013-10-16 17:48:41 -07:00
2013-12-20 09:57:58 -08:00
2013-12-20 09:57:58 -08:00
2013-12-03 11:17:58 -08:00
2013-10-16 17:48:41 -07:00
2013-12-05 22:29:03 -08:00
2013-12-05 22:29:03 -08:00
2013-10-16 17:48:41 -07:00
2013-12-26 15:12:30 -08:00
2013-10-16 17:48:41 -07:00
2013-10-16 17:48:41 -07:00
2013-10-28 17:54:09 -07:00
2013-11-15 16:30:23 -08:00
2013-10-16 17:48:41 -07:00
2013-10-25 08:32:14 -07:00
2013-10-25 08:32:14 -07:00
2013-10-16 17:48:41 -07:00
2013-10-16 17:48:41 -07:00
2013-10-16 17:48:41 -07:00
2013-10-16 17:48:41 -07:00
2013-10-16 17:48:41 -07:00
2013-10-16 17:48:41 -07:00
2013-12-26 16:23:10 -08:00
2013-12-11 11:37:28 -08:00
2013-12-11 11:37:28 -08:00
2013-12-11 11:37:28 -08:00
2013-12-11 11:37:28 -08:00
2013-11-25 10:38:15 -08:00
2013-11-25 10:38:15 -08:00
2013-10-16 17:48:41 -07:00
2013-10-16 17:48:41 -07:00
2013-12-03 12:42:15 -08:00
2013-10-16 17:48:41 -07:00
2013-12-03 12:42:15 -08:00
2013-12-03 11:17:58 -08:00
2013-11-19 16:29:42 -08:00
2013-10-16 17:48:41 -07:00
2013-11-08 00:31:09 -08:00
2013-10-16 17:48:41 -07:00
2013-11-25 10:38:15 -08:00
2013-10-30 10:52:33 -07:00
2013-11-19 22:00:48 -08:00
2013-11-21 17:54:23 -08:00
2013-11-19 16:29:42 -08:00
2013-11-12 21:05:39 -08:00
2013-11-04 20:49:03 -08:00
2013-10-16 17:48:41 -07:00
2013-10-16 17:48:41 -07:00
2013-10-24 21:05:33 -07:00
2013-10-16 17:48:41 -07:00
2013-10-16 17:48:41 -07:00
2013-12-26 16:23:10 -08:00
2013-12-20 09:57:58 -08:00
2013-10-31 11:27:12 -07:00
2013-12-03 11:17:58 -08:00
2013-11-25 10:38:15 -08:00