Emacs integration - an overview

Matt Mackall mpm at selenic.com
Tue Sep 6 13:59:36 CDT 2005


On Thu, Sep 01, 2005 at 01:00:42PM -0400, Dan Christensen wrote:
> Dan Christensen <jdc at uwo.ca> writes:
> 
> > Bryan O'Sullivan <bos at serpentine.com> writes:
> >
> >> On Wed, 2005-08-31 at 14:18 -0400, Dan Christensen wrote:
> >>
> >>> But it happens because python's sys.getcwd returns the canonical path,
> >>> after expanding symlinks.  Maybe the solution is for hg to use
> >>> os.path.realpath on all filenames?
> >>
> >> I don't think so.  It's pretty expensive.

On modern Linux, it's quite a bit cheaper than on other systems.
There's a getcwd system call that grabs the full path for "." from the
dentry cache. Other systems have a libc function that walks up the
directory tree looking for directory entries that correspond to ".".

So if you're timing this on Linux, be warned that you may be
pessimizing other systems.

-- 
Mathematics is the supreme nostalgia of our time.


More information about the Mercurial mailing list