Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

falcon patch: tune st_table packed size for 64bit

64bit tcmalloc/jemalloc preffers when packed size
and secondary size are equal
  • Loading branch information...
commit e360088ac8d08f02d7a838bf261d5d4185c00e7f 1 parent 42674c0
@funny-falcon funny-falcon authored
View
2  patches/ruby/1.9.3/p327/falcon-gc.diff
@@ -4372,7 +4372,7 @@ index fda5784..20ec427 100644
+#define ST_DEFAULT_MAX_DENSITY 2
#define ST_DEFAULT_INIT_TABLE_SIZE 11
+#define ST_DEFAULT_SECOND_TABLE_SIZE 19
-+#define ST_DEFAULT_PACKED_TABLE_SIZE 18
++#define ST_DEFAULT_PACKED_TABLE_SIZE 19
+#define PACKED_UNIT (int)(sizeof(st_packed_entry) / sizeof(st_table_entry*))
+#define MAX_PACKED_HASH (int)(ST_DEFAULT_PACKED_TABLE_SIZE * sizeof(st_table_entry*) / sizeof(st_packed_entry))
+
View
2  patches/ruby/1.9.3/p327/falcon.diff
@@ -3298,7 +3298,7 @@ index fda5784..20ec427 100644
+#define ST_DEFAULT_MAX_DENSITY 2
#define ST_DEFAULT_INIT_TABLE_SIZE 11
+#define ST_DEFAULT_SECOND_TABLE_SIZE 19
-+#define ST_DEFAULT_PACKED_TABLE_SIZE 18
++#define ST_DEFAULT_PACKED_TABLE_SIZE 19
+#define PACKED_UNIT (int)(sizeof(st_packed_entry) / sizeof(st_table_entry*))
+#define MAX_PACKED_HASH (int)(ST_DEFAULT_PACKED_TABLE_SIZE * sizeof(st_table_entry*) / sizeof(st_packed_entry))
+
Please sign in to comment.
Something went wrong with that request. Please try again.