Actions
Feature #9496
closed[PATCH] constant.h: repacking rb_const_entry_struct
Status:
Closed
Assignee:
-
Target version:
-
Description
From f8c53e2242e514626a4c9cecba149213ae286722 Mon Sep 17 00:00:00 2001
From: hekaldama
Date: Wed, 29 Jan 2014 08:50:16 -0800
Subject: [PATCH] constant.h: repacking rb_const_entry_struct
constant.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/constant.h b/constant.h
index 3dc9b8d..1536546 100644
--- a/constant.h
+++ b/constant.h
@@ -18,9 +18,9 @@ typedef enum {
.
typedef struct rb_const_entry_struct {
rb_const_flag_t flag;
- int line;
const VALUE value; /* should be mark /
const VALUE file; / should be mark */
- int line;
} rb_const_entry_t;
.
VALUE rb_mod_private_constant(int argc, VALUE *argv, VALUE obj);
--.
1.8.5.1
Updated by Anonymous about 10 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
Applied in changeset r44869.
constant.h: reduce rb_const_entry_t size on 64-bit
* constant.h: reduce rb_const_entry_t size on 64-bit
Patch by Adam Avilla [ruby-core:60542] [Feature #9496]
Updated by normalperson (Eric Wong) about 10 years ago
Thanks, committed as r44869.
This consistently lowers time(1) measurement of "ruby -e exit" memory
use by ~10-16K on my x86_64 machine, so it should help with bigger apps.
Actions
Like0
Like0Like0