tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: make performance, low-hanging fruits



On Sun, Jan 15, 2012 at 02:41:25PM +0000, David Laight wrote:
 > I got a massive improvement in the parser a few years ago by reading
 > chunks of 'file' and separating out into lines (rather than a getchar()
 > loop). DH has since change it to use mmap() - I didn't bother because
 > it dirties most of the pages.

That was a structural hack, not a speed hack. It was the first step
toward separating reading the makefile from eval'ing it; I just
haven't got any further yet.

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index