Thing is its not, unless it keeps the Index class it generates around, so
"fixing" this will change the current behavior people expect from the call


On Tue, Apr 9, 2013 at 11:57 AM, Joshua Peek <notifications@github.com>wrote:

> In lib/sprockets/base.rb:
>
> > @@ -228,7 +228,10 @@ def entries(pathname)
> >      #
> >      # Subclasses may cache this method.
> >      def stat(path)
> > -      @trail.stat(path)
> > +      # note, @trail.stat is sub-optimal
> > +      # it create a new Index in hike, which initiliazed a bunch of
> > +      # unused stuff, the stat cool in Index disregards root anyway
> > +      File.stat(path)
>
> Anyway we can speed Trail#stat up? Its nice thats its a cached call.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/sstephenson/sprockets/pull/428/files#r3706535>
> .
>