This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 1.7.0 CVS mmap failure


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]