delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/06/12/06:50:37

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=eWUkhK0szRIzIDcX
2Sy4b1D1HgUsgzJlkM/zfFSoT332FgM3NAS5OoXpLYpp7T7rZ+0ifqpyupX1oGxt
3LUVpQ7e8GwKgbq0sI6mLWEGQOHugMFizecqkyZvkrmk1BH/yFVwPpqHhXrJyzYo
OsDafP6Hgpl4OiRDneBY+QQYBQ4=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=dsBDr2f9bBuW13e8lyFYyA
/cU4Q=; b=vvadumA1WaMERz7xIqveOnvFzT7S4vd0Apmt784tGIDMuFuXv9eJJ1
icsx9xsdHzNOp+pEhBAHXybDMei2mA6It5mJx92q6hcgr9rRLYzUNzlc0Axuq/pl
HsK2VSVSh61LnCKJ0eiEW4E0uEoyOOMU24aDwbhNIktQS4+frO8kg=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=2.0 required=5.0 tests=BAYES_50,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=H*UA:Bat!, H*x:Bat!, H*M:yandex, H*x:Home
X-HELO: forward4o.cmail.yandex.net
Authentication-Results: smtp2o.mail.yandex.net; dkim=pass header.i=@yandex.ru
X-Yandex-Suid-Status: 1 0,1 0
Date: Sun, 12 Jun 2016 13:49:16 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <310054882.20160612134916@yandex.ru>
To: "Riedel,Till (TM)" <till DOT riedel AT kit DOT edu>, cygwin AT cygwin DOT com
Subject: Re: man incredibly slow because it scans for share directory in PATH??
In-Reply-To: <19074b1d-78d1-a425-5a79-434ce8b1d480@kit.edu>
References: <19074b1d-78d1-a425-5a79-434ce8b1d480 AT kit DOT edu>
MIME-Version: 1.0
X-IsSubscribed: yes

Greetings, Riedel,Till (TM)!

> I traced down my problem with really slow man page views this:

> {{{

 >>PATH="/usr/bin:/foo" strace man bar |grep 'foo/share'

> }}}

> I am getting this:

> {{{

>     13   39756 [main] man 6688 normalize_posix_path: src /foo/share/man
>     16   39772 [main] man 6688 normalize_posix_path: /foo/share/man = 
> normalize_posix_path (/foo/share/man)
>     13   39785 [main] man 6688 mount_info::conv_to_win32_path: 
> conv_to_win32_path (/foo/share/man)
>     12   39810 [main] man 6688 mount_info::conv_to_win32_path: src_path 
> /foo/share/man, dst C:\tools\cygwin\foo\share\man, flags 0x3000A, rc 0
>     16   39912 [main] man 6688 mount_info::conv_to_win32_path: 
> conv_to_win32_path (/foo/share)
>     14   39942 [main] man 6688 mount_info::conv_to_win32_path: src_path 
> /foo/share, dst C:\tools\cygwin\foo\share, flags 0x3000A, rc 0

> }}}

> If my PATH is the real one this goes on forever, and generates some 
> problems,like:

You have lots of duplicated, obsolete and overlapping paths in your %PATH%.
I suggest you start from some homecleaning.
Not to mention strange ones, like "/".

> {{{

 >>time man bar
> No manual entry for bar

> real    0m23.650s
> user    0m0.000s
> sys     0m0.108s

> hanging e.g. on

>     20 2449004 [main] man 8124 mount_info::conv_to_win32_path: src_path 
> //share/man, dst \\share\man, flags 0x4022, rc 0

> }}}

> VS.

> {{{

 >>PATH=/usr/bin/ bash -c "time man bar"
> No manual entry for bar

> real    0m0.082s
> user    0m0.031s
> sys     0m0.045s

> }}}

> Any ideas why man does look for "share" in the whole path? Tbh I haven't 
> looked at the man source code. Thx in advance!


-- 
With best regards,
Andrey Repin
Sunday, June 12, 2016 13:47:12

Sorry for my terrible english...


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019