[前][次][番号順一覧][スレッド一覧]

ruby-changes:58210

From: Lourens <ko1@a...>
Date: Fri, 11 Oct 2019 11:16:32 +0900 (JST)
Subject: [ruby-changes:58210] 9c24ce551d (master): Reduce the minimum string buffer size from 127 to 63 bytes

https://git.ruby-lang.org/ruby.git/commit/?id=9c24ce551d

From 9c24ce551d19ac0f5cac4bc9ff5ef5a7a980909d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lourens=20Naud=C3=A9?= <lourens@b...>
Date: Thu, 25 Apr 2019 22:35:43 +0100
Subject: Reduce the minimum string buffer size from 127 to 63 bytes


diff --git a/string.c b/string.c
index 77f360b..7f0468f 100644
--- a/string.c
+++ b/string.c
@@ -1346,7 +1346,7 @@ str_new_empty(VALUE str) https://github.com/ruby/ruby/blob/trunk/string.c#L1346
     return v;
 }
 
-#define STR_BUF_MIN_SIZE 127
+#define STR_BUF_MIN_SIZE 63
 STATIC_ASSERT(STR_BUF_MIN_SIZE, STR_BUF_MIN_SIZE > RSTRING_EMBED_LEN_MAX);
 
 VALUE
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]