On Nov 26, 2007 8:11 PM, Stefan Teleman <Stefan.Teleman at sun.com> wrote: > > > I. Szczesniak wrote: > > > Stefan, please change this to --enable-alloca=alloca. > > --enable-alloca=malloc-reentrant will use the default Solaris memory > > allocator which *severely* reduces libgmp's performance in multi > > threaded applications with many threads. It's up to the caller to > > allocate sufficient stack space for temporary allocations. > > You mean the GNU MP subscriber application should be responsible for changing > the default stack size to accommodate the allocation of very large temporary > objects on the stack with alloca(3C) ?
Those consumers who pass more than 8MB of data to libgmp will require a larger stack - which is already the case for many libc functions, too. > > This does not sound like a practical approach to me. It doesn't sound like a practical approach to cripple all consumers of libgmp. libgmp is about performance and not about slowing consumers down by artificial means. Irek
