Web lists-archives.com

Re: calloc speed difference

On 1/12/2018 2:19 AM, Lee wrote:
Why is the cygwin gcc calloc so much slower than the
i686-w64-mingw32-gcc calloc?

Since your test repeatedly allocates and frees one chunk
of size 100 Mb (ouch!) my guess is that the slow behavior is
rooted in something to do with mmap.  Perhaps Corinna
or another internals expert can explain why large mmap
requests would be a problem for cygwin -- and perhaps it
is something that could be improved if the effort is
warranted ...

Eliot Moss

Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple