comparison mercurial/util.py @ 18026:ddc0323db78b

osutil: write a C implementation of statfiles for unix This makes a big difference to performance. In a clean working directory containing 170,000 files, performance of "hg --time diff" improves from 2.38 seconds to 1.69.
author Bryan O'Sullivan <bryano@fb.com>
date Mon, 03 Dec 2012 12:40:24 -0800
parents 98c867ac1330
children 614f769e6aa7
comparison
equal deleted inserted replaced
18021:9b05b31b413c 18026:ddc0323db78b
62 setsignalhandler = platform.setsignalhandler 62 setsignalhandler = platform.setsignalhandler
63 shellquote = platform.shellquote 63 shellquote = platform.shellquote
64 spawndetached = platform.spawndetached 64 spawndetached = platform.spawndetached
65 split = platform.split 65 split = platform.split
66 sshargs = platform.sshargs 66 sshargs = platform.sshargs
67 statfiles = platform.statfiles 67 statfiles = getattr(osutil, 'statfiles', platform.statfiles)
68 termwidth = platform.termwidth 68 termwidth = platform.termwidth
69 testpid = platform.testpid 69 testpid = platform.testpid
70 umask = platform.umask 70 umask = platform.umask
71 unlink = platform.unlink 71 unlink = platform.unlink
72 unlinkpath = platform.unlinkpath 72 unlinkpath = platform.unlinkpath