Re: optimising change CWD algorithm in subshell mode

2012-11-05 Thread Dmitry Smirnov
On Tue, 6 Nov 2012 04:09:45 Oswald Buddenhagen wrote: On Sun, Nov 04, 2012 at 11:43:35PM +1100, Dmitry Smirnov wrote: What do you think would be the best to do about it? find out where the slowness *actually* comes from. oprofile, or maybe callgrind (once you isolated the process). I don't

Re: optimising change CWD algorithm in subshell mode

2012-11-04 Thread Oswald Buddenhagen
On Sat, Nov 03, 2012 at 11:34:58AM +1100, Dmitry Smirnov wrote: For example if current working directory is /1/2/3/4/5 and we want to change to /1/2/3/4/5/6 MC sends cd /1/2/3/4/5/6 to bash when in reality one would likely to use cd ./6 as long as it is just one hop away from current

optimising change CWD algorithm in subshell mode

2012-11-02 Thread Dmitry Smirnov
Dear MC team, This is just an idea of improvement. At the moment MC is quite ineffectively changing current working directory (CWD) in subshell mode. What's happening is MC sends full path of a directory we're we want to change to the (bash) shell. For example if current working directory is