From 93327d894ae37978c27135eef3e8d8ded740d4c0 Mon Sep 17 00:00:00 2001 From: spacewander Date: Wed, 13 Sep 2017 16:47:24 +0800 Subject: [PATCH] Update the comment for OBJ_ENCODING_EMBSTR_SIZE_LIMIT's value The value of OBJ_ENCODING_EMBSTR_SIZE_LIMIT is 44 now instead of 39. --- src/object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/object.c b/src/object.c index 2565ed59f..2d56979b3 100644 --- a/src/object.c +++ b/src/object.c @@ -111,7 +111,7 @@ robj *createEmbeddedStringObject(const char *ptr, size_t len) { * OBJ_ENCODING_EMBSTR_SIZE_LIMIT, otherwise the RAW encoding is * used. * - * The current limit of 39 is chosen so that the biggest string object + * The current limit of 44 is chosen so that the biggest string object * we allocate as EMBSTR will still fit into the 64 byte arena of jemalloc. */ #define OBJ_ENCODING_EMBSTR_SIZE_LIMIT 44 robj *createStringObject(const char *ptr, size_t len) {