3-Nov-2002 21:13 I wrote:
> Optimize memory usage:
> * in SGML.c, element stack now use a pool of just 10 elements
> to avoid most of malloc/free calls.
addition to that patch (it will crash without):
--- sgml.c Sun Nov 3 15:32:44 2002
+++ sgml.new Mon Nov 4 22:16:36 2002
@@ -1455,7 +1455,7 @@ PRIVATE void SGML_free ARGS1(
cur = context->element_stack;
t = cur->tag;
context->element_stack = cur->next; /* Remove from stack */
- FREE(cur);
+ pool_free(cur);
#ifdef USE_PRETTYSRC
if (!psrc_view) /* Don't actually call on target if viewing psrc - kw */
#endif
@@ -1510,7 +1510,7 @@ PRIVATE void SGML_abort ARGS2(
while (context->element_stack) {
cur = context->element_stack;
context->element_stack = cur->next; /* Remove from stack */
- FREE(cur);
+ pool_free(cur);
}
/*
; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to [EMAIL PROTECTED]