1.7.0 CVS mmap failure

Corinna Vinschen corinna-cygwin@cygwin.com
Fri Jan 19 17:27:00 GMT 2007


On Jan 19 07:41, Christopher Layne wrote:
> Thanks for fixing this. I also noticed these when reading through the code.
> Another area for extremely small optimization is to just cache the pagesize.
> I notice a *lot* of calls to getpagesize(), when I can't really see the
> pagesize changing within a single call to mmap(). Since the map implementations

See the implementation of getpagesize.  It's only evaluated once, the
function is used as encapsulation.  I don't think you will see a really
noticable performance gain by storing the result in a local var.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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



More information about the Cygwin mailing list