nikic wrote:

> I also noticed that LoadedSLocEntryTable uses 42 elements tables, which 
> probably introduces some extra divisions to do the indexing. I can try 
> switching to 32 elements.

I've tested the following change that forces power of two pages sizes, but it 
did not have any impact:

I've done some profiling and found that the regression seems to be related to 
inlining. In particular getAndAdvanceChar() inside LexTokenInternal() no longer 
gets inlined, and that's hot code. This only affects builds with GCC.

It's not totally obvious to me why that happens, as getAndAdvanceChar() doesn't 
appear to use PagedVector at all.
cfe-commits mailing list

Reply via email to