From: Dan K. <ku...@aj...> - 2000-09-01 06:45:49
|
Brent the memory allocation algorithms you included in the summary don't match those posted in Erics original post in this thread (those in the patch). >From Erics original post: > Formerly, the growth algorithm was: > > newsize = 2 * (oldsize + appendsize) > > Now, the growth algorithm is: > > if (oldsize + appendsize >= TCL_GROWTH_LARGE_STRING) > newsize = oldsize + (2 * appendsize) + TCL_GROWTH_MIN_ALLOC > else > newsize = 2 * (oldsize + appendsize) > endif > > TCL_GROWTH_LARGE_STRING defaults to 1 megabyte; TCL_GROWTH_MIN_ALLOC > defaults to 1 kilobyte, and is included to efficiently handle repeated > small appends to a large string. -- The TclCore mailing list is sponsored by Ajuba Solutions To unsubscribe: email tcl...@aj... with the word UNSUBSCRIBE as the subject. |