aboutsummaryrefslogtreecommitdiffstats
path: root/tasks.c
diff options
context:
space:
mode:
Diffstat (limited to 'tasks.c')
-rw-r--r--tasks.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/tasks.c b/tasks.c
index 0c46e0b..6414a55 100644
--- a/tasks.c
+++ b/tasks.c
@@ -1666,8 +1666,8 @@ activation_bytes(activation * ap)
}
/* XXX ignore bi_func_data, it's an opaque type. */
total += value_bytes(ap->temp) - sizeof(Var);
- total += strlen(ap->verb) + 1;
- total += strlen(ap->verbname) + 1;
+ total += memo_strlen(ap->verb) + 1;
+ total += memo_strlen(ap->verbname) + 1;
return total;
}
@@ -2237,6 +2237,13 @@ char rcsid_tasks[] = "$Id$";
/*
* $Log$
+ * Revision 1.14 2006/09/07 00:55:02 bjj
+ * Add new MEMO_STRLEN option which uses the refcounting mechanism to
+ * store strlen with strings. This is basically free, since most string
+ * allocations are rounded up by malloc anyway. This saves lots of cycles
+ * computing strlen. (The change is originally from jitmoo, where I wanted
+ * inline range checks for string ops).
+ *
* Revision 1.13 2004/05/28 07:53:32 wrog
* added "intrinsic-commands" connection option
*