delorie.com/archives/browse.cgi | search |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |