From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 75340 invoked by alias); 12 Jun 2016 10:50:20 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 75322 invoked by uid 89); 12 Jun 2016 10:50:19 -0000 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 Received: from forward4o.cmail.yandex.net (HELO forward4o.cmail.yandex.net) (37.9.109.248) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Sun, 12 Jun 2016 10:50:09 +0000 Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::26]) by forward4o.cmail.yandex.net (Yandex) with ESMTP id 26F85203B4; Sun, 12 Jun 2016 13:50:05 +0300 (MSK) Received: from smtp2o.mail.yandex.net (localhost [127.0.0.1]) by smtp2o.mail.yandex.net (Yandex) with ESMTP id D614836A0302; Sun, 12 Jun 2016 13:50:04 +0300 (MSK) Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id KrutmbcA3l-o4Z034A3; Sun, 12 Jun 2016 13:50:04 +0300 (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client certificate not present) Authentication-Results: smtp2o.mail.yandex.net; dkim=pass header.i=@yandex.ru X-Yandex-Suid-Status: 1 0,1 0 Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Sun, 12 Jun 2016 10:49:16 -0000 Date: Sun, 12 Jun 2016 14:41:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <310054882.20160612134916@yandex.ru> To: "Riedel,Till (TM)" , cygwin@cygwin.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@kit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-06/txt/msg00186.txt.bz2 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