Re: Blocking DNS lookup on MC startup

2006-05-31 Thread Pavel Tsekov
On Wed, 31 May 2006, Pavel Tsekov wrote: On Wed, 31 May 2006, Pavel Tsekov wrote: On Tue, 30 May 2006, Pavel Tsekov wrote: Yes. I understood that the first time through. There was a similiar bug report already. The question is: why MC is doing DNS queries? Is possible to disable them?

Re: [RFE][PATCH] Display free space on device in panels

2006-05-31 Thread Pavel Tsekov
On Wed, 31 May 2006, Oswald Buddenhagen wrote: On Wed, May 31, 2006 at 05:13:29PM +0300, Pavel Tsekov wrote: There is no need to profile MC. It is not speedup in terms of CPU cycles but in reduced screen update i.e. why paint the frame each time if it really doesn't change at all. it should b

Re: [RFE][PATCH] Display free space on device in panels

2006-05-31 Thread Oswald Buddenhagen
On Wed, May 31, 2006 at 05:13:29PM +0300, Pavel Tsekov wrote: > There is no need to profile MC. It is not speedup in terms of CPU > cycles but in reduced screen update i.e. why paint the frame each time > if it really doesn't change at all. > it should be pointed out that the screen libs (ncurses

Re: [RFE][PATCH] Display free space on device in panels

2006-05-31 Thread Pavel Tsekov
On Wed, 31 May 2006, Jindrich Novy wrote: On Tue, 2006-05-30 at 14:56 +0300, Pavel Tsekov wrote: On Mon, 29 May 2006, Jindrich Novy wrote: On Fri, 2006-05-19 at 14:29 -0400, Pavel Roskin wrote: Can we avoid any highlighting? I think Far Manager does it right: http://red-bean.com/proski/mc/f

Re: [RFE][PATCH] Display free space on device in panels

2006-05-31 Thread Leonard den Ottolander
Hello Jindrich, On Wed, 2006-05-31 at 15:56 +0200, Jindrich Novy wrote: > On Tue, 2006-05-30 at 14:56 +0300, Pavel Tsekov wrote: > > Now, after I reviewed the patch for a second time I am pretty convinced > > that the free space info should be displayed in the mini status area > > and not on its

Re: [RFE][PATCH] Display free space on device in panels

2006-05-31 Thread Jindrich Novy
Hi Pavel, On Tue, 2006-05-30 at 14:56 +0300, Pavel Tsekov wrote: > On Mon, 29 May 2006, Jindrich Novy wrote: > > > On Fri, 2006-05-19 at 14:29 -0400, Pavel Roskin wrote: > >> Can we avoid any highlighting? I think Far Manager does it right: > >> http://red-bean.com/proski/mc/far.png > > > > Att

Re: Blocking DNS lookup on MC startup

2006-05-31 Thread Leonard den Ottolander
Hi, On Wed, 2006-05-31 at 15:26 +0300, Pavel Tsekov wrote: > I've notified Andrew Samoilov about this discussion. I suggest that we > wait for his opinion on this matter. Ok. By the way, if neither my_name nor ip are set we can safely return before the call to gethostname(). Leonard. -- mount

Re: Blocking DNS lookup on MC startup

2006-05-31 Thread Pavel Tsekov
On Wed, 31 May 2006, Leonard den Ottolander wrote: On Wed, 2006-05-31 at 14:49 +0300, Pavel Tsekov wrote: 1) The backtrace shows it. Yes, but that doesn't mean it couldn't hang elsewhere. Hence my question. I think, but I am not sure, that the rest of the gethostbyname() and related calls

Re: Blocking DNS lookup on MC startup

2006-05-31 Thread Leonard den Ottolander
Hi Pavel, On Wed, 2006-05-31 at 14:49 +0300, Pavel Tsekov wrote: > 1) The backtrace shows it. Yes, but that doesn't mean it couldn't hang elsewhere. Hence my question. > > 2) If i had smbfs disabled (and I do) i wasn't able to reproduce > the slowdown. Right. > 3) There are not gethostbyname()

Re: Blocking DNS lookup on MC startup

2006-05-31 Thread Pavel Tsekov
On Wed, 31 May 2006, Leonard den Ottolander wrote: On Wed, 2006-05-31 at 11:53 +0300, Pavel Tsekov wrote: It is clear that this happens only of smbfs support is enabled. Why? Because you can only reproduce it once you enable smbfs? 1) The backtrace shows it. 2) If i had smbfs disabled (and

Re: Blocking DNS lookup on MC startup

2006-05-31 Thread Pavel Tsekov
On Wed, 31 May 2006, Pavel Tsekov wrote: dns lookup is performed - well, get_myname() is a bit stupid. There is also this interesting fact - smbfs_init() retrieves the hostname but it actually serves no purpose, it is not used anywhere in the code. This is not entirely true. It appears the ret

Re: Blocking DNS lookup on MC startup

2006-05-31 Thread Leonard den Ottolander
Hello Pavel, On Wed, 2006-05-31 at 11:53 +0300, Pavel Tsekov wrote: > It is clear that this happens only of smbfs support is enabled. Why? Because you can only reproduce it once you enable smbfs? > I see several solutions to this problem: > > 1) The user arranges for her/his network setup to be

Re: Blocking DNS lookup on MC startup

2006-05-31 Thread Pavel Tsekov
On Wed, 31 May 2006, Pavel Tsekov wrote: On Tue, 30 May 2006, Pavel Tsekov wrote: Yes. I understood that the first time through. There was a similiar bug report already. The question is: why MC is doing DNS queries? Is possible to disable them? Maybe someone else is doing those queries. A