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-10-23 14:38:52 -07:00
2013-11-16 11:21:34 +00:00
2013-12-11 08:33:29 -08: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
2013-12-03 12:42:15 -08:00
2013-12-03 12:42:15 -08:00
2013-11-12 21:22:32 -08:00
2013-12-03 14:28:48 -08:00
2013-12-03 12:42:15 -08:00