[groonga-commit:4245] ranguba/rroonga [master] [performance] share memory in inner cache.

null+ranguba at clear-code.com null+ranguba at clear-code.com
Tue Jan 24 09:58:02 EST 2012


Kouhei Sutou	2012-01-24 23:58:02 +0900 (Tue, 24 Jan 2012)

  New Revision: 29099bff93377733d81dc2398c3403e1293301dc

  Log:
    [performance] share memory in inner cache.

  Modified files:
    ext/groonga/rb-grn-column.c
    ext/groonga/rb-grn-table-key-support.c
    ext/groonga/rb-grn-table.c

  Modified: ext/groonga/rb-grn-column.c (+2 -1)
===================================================================
--- ext/groonga/rb-grn-column.c    2012-01-24 23:34:22 +0900 (2c5cf47)
+++ ext/groonga/rb-grn-column.c    2012-01-24 23:58:02 +0900 (71e53c2)
@@ -73,7 +73,8 @@ rb_grn_column_bind (RbGrnColumn *rb_column,
 
     rb_grn_object = RB_GRN_OBJECT(rb_column);
     rb_grn_named_object_bind(RB_GRN_NAMED_OBJECT(rb_column), context, column);
-    rb_column->value = grn_obj_open(context, GRN_BULK, 0,
+    rb_column->value = grn_obj_open(context, GRN_BULK,
+				    GRN_OBJ_DO_SHALLOW_COPY,
                                     rb_grn_object->range_id);
 }
 

  Modified: ext/groonga/rb-grn-table-key-support.c (+2 -1)
===================================================================
--- ext/groonga/rb-grn-table-key-support.c    2012-01-24 23:34:22 +0900 (e6a13d8)
+++ ext/groonga/rb-grn-table-key-support.c    2012-01-24 23:58:02 +0900 (8fe362d)
@@ -84,7 +84,8 @@ rb_grn_table_key_support_bind (RbGrnTableKeySupport *rb_grn_table_key_support,
     rb_grn_table_bind(rb_grn_table, context, table_key_support);
 
     rb_grn_table_key_support->key =
-	grn_obj_open(context, GRN_BULK, 0, rb_grn_object->domain_id);
+	grn_obj_open(context, GRN_BULK,
+		     GRN_OBJ_DO_SHALLOW_COPY, rb_grn_object->domain_id);
 }
 
 static grn_id

  Modified: ext/groonga/rb-grn-table.c (+2 -1)
===================================================================
--- ext/groonga/rb-grn-table.c    2012-01-24 23:34:22 +0900 (4483717)
+++ ext/groonga/rb-grn-table.c    2012-01-24 23:58:02 +0900 (18b89a3)
@@ -75,7 +75,8 @@ rb_grn_table_bind (RbGrnTable *rb_grn_table,
     RbGrnObject *rb_grn_object;
 
     rb_grn_object = RB_GRN_OBJECT(rb_grn_table);
-    rb_grn_table->value = grn_obj_open(context, GRN_BULK, 0,
+    rb_grn_table->value = grn_obj_open(context, GRN_BULK,
+				       GRN_OBJ_DO_SHALLOW_COPY,
 				       rb_grn_object->range_id);
     rb_grn_table->columns = Qnil;
     rb_grn_table->columns = rb_ary_new();



More information about the groonga-commit mailing list