This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: cpplib: Separate out translation phases 1 and 2


Geoff Keating wrote:-

> Are we sure this is a good idea?  I can think of the following disadvantages:
> 
> 1. VM usage has increased, because we have this new buffer which is
>    written to.  (Before, when the buffer was read-only, most OSs would
>    just hand out pages from the disk cache, and they could hand out
>    the same page for every compile.)

That's only true for files > MMAP_THRESHOLD ~ 32K.  Most files are
headers < 32K, for which we opened into a buffer and appended a '\0'.

Neil.


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