Update of /cvsroot/monetdb/pathfinder/runtime
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv20537/runtime
Modified Files:
shredder.mx
Log Message:
propagated changes of Thursday Feb 26 2009
from the Feb2009 branch to the development trunk
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2009/02/26 - jflokstra: runtime/shredder.mx,1.153.2.7
- Improve buffer increment strategy for very large text nodes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
U shredder.mx
Index: shredder.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/shredder.mx,v
retrieving revision 1.156
retrieving revision 1.157
diff -u -d -r1.156 -r1.157
--- shredder.mx 23 Feb 2009 10:35:22 -0000 1.156
+++ shredder.mx 26 Feb 2009 21:20:16 -0000 1.157
@@ -1119,7 +1119,7 @@
shredCtxStruct *shredCtx = (shredCtxStruct*) xmlCtx;
if ( (shredCtx->content + n + 1) > shredCtx->content_max) {
- shredCtx->content_max = shredCtx->content + n + 1;
+ shredCtx->content_max = MAX(shredCtx->content + n + 1,
2*shredCtx->content_max);
shredCtx->content_buf = GDKrealloc(shredCtx->content_buf,
shredCtx->content_max);
if (shredCtx->content_buf == NULL) {
GDKerror("shred_characters: GDKrealloc() failed.\n");
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins