harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leo Li <liyilei1...@gmail.com>
Subject Re: [classlib] add cache for file's canonical path
Date Thu, 02 Jul 2009 09:26:37 GMT
On Thu, Jul 2, 2009 at 4:53 PM, Yang Paulex <paulex.yang@gmail.com> wrote:

> 2009/5/8 Tim Ellison <t.p.ellison@gmail.com>
>
> >
> > [snip]
> >
>
>
> >
> > My initial thought is that it would be preferable to have the OS tell
> > you when a file path changes so you can invalidate the cache, but there
> > may not be enough info to be able to do that...
>
>
> It may be overkill, but Linux has a system call - inotify to send file
> change notification to registered directory.
>


   I have a straightforward approach. Maybe just kidding, hehe.
   If we can assume that most of file pathes put to check access has been
cannonicalized, we can first directly use them but the cannonical one as a
failover .

>
>
> Regards,
> Tim
>
>



-- 
Good luck!

Leo Li

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message