On 08/27/2010 12:33 PM, Eric Blake wrote: > 4k in a non-recursive algorithm is probably fine for a non-threaded app;
Yes, and that is the case here. > but if there is any chance for recursion, then stack-allocating a 4k > array risks interfering with stack overflow detection Yes, quite right; I should have written "a bit smaller than 4k" instead of "4k-or-so". gnulib/lib/malloca.h has more on this.
