Re: Making diff(1) of linux kernels faster

Marco C. Mason
2001-10-18T13:24:37Z

Paul--

Paul Gortmaker wrote:
> + if (recursive && preread_dir)
> + {
> + preread(inf[0].name);
> + preread(inf[1].name);
> + }

While looking over your patch, I notice that you preload *both*
directories. (At least, that's what the code above appears to do).
Have you tried just preloading one? This may still give you the speed
benefit (as you'll most likely reduce the seeking) and put less pressure
on the memory system.

--marco