Re: [llvm-commits] CVS: llvm/lib/System/Unix/MappedFile.inc

2007-03-30 Thread Chris Lattner
On Mar 30, 2007, at 7:49 AM, Jeff Cohen wrote: > Chris Lattner wrote: >>> Use the stat information in the Path object, if it is already >>> obtained. This >>> avoids a call to ::fstat by MappedFile when the file size >>> information was >>> already obtained by the Path object. >>> >> >> Int

Re: [llvm-commits] CVS: llvm/lib/System/Unix/MappedFile.inc

2007-03-30 Thread Jeff Cohen
Chris Lattner wrote: >> Use the stat information in the Path object, if it is already >> obtained. This >> avoids a call to ::fstat by MappedFile when the file size >> information was >> already obtained by the Path object. >> > > Interesting approach. The problem is that fstat is signifi

Re: [llvm-commits] CVS: llvm/lib/System/Unix/MappedFile.inc

2007-03-29 Thread Chris Lattner
> Use the stat information in the Path object, if it is already > obtained. This > avoids a call to ::fstat by MappedFile when the file size > information was > already obtained by the Path object. Interesting approach. The problem is that fstat is significantly faster than stat. How about