From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward502c.mail.yandex.net (forward502c.mail.yandex.net [178.154.239.210]) by sourceware.org (Postfix) with ESMTPS id 886063858D28 for ; Fri, 22 Dec 2023 19:05:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 886063858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=yandex.ru ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 886063858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=178.154.239.210 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703271907; cv=none; b=IhbQmfgXLT2utGYzuPnyz2lf8E1b5g6XsmMru3opT2UZhFqYAK4lBuHk/EiVPLmXpaDH2ofM48AsCvV5hG0/7lETGYrOc9De/unrJDVgt5qNteHoDtm2NhmM8qtMtPEcjbbU+OZqMalJEgKkIINE0TvLZCFdW4TMcZtQ9G1qONs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703271907; c=relaxed/simple; bh=9c4N7TE65yXUlYXgLIg7LC8UniBCgw4o/ivuEU093S8=; h=DKIM-Signature:Date:From:Message-ID:To:Subject:MIME-Version; b=DFFSKtlnEUjxgfU9+giD9SeemBqat500NOON+HpFy6zxRXIoGFem1v4leldPuKunaB7OyYJaGb7pp3DsK34KUd0MBxr40tQ7V/rOv0Jozkkg1pHaVlYikbJ0Tkjwf4t506q+ZDYa58bARFakZ9geI9RoEgQa5SH7DX23meUoJbw= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from mail-nwsmtp-smtp-production-main-73.iva.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-73.iva.yp-c.yandex.net [IPv6:2a02:6b8:c0c:7a9d:0:640:cc2d:0]) by forward502c.mail.yandex.net (Yandex) with ESMTP id 716F960EAC; Fri, 22 Dec 2023 22:05:03 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-73.iva.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id 05VqceC5SiE0-VEDd7HzU; Fri, 22 Dec 2023 22:05:03 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1703271903; bh=54dOH9BH2dCRkBUQnfoA15f0pE5MzlZ1YguMj0EI5lQ=; h=In-Reply-To:Subject:Date:References:To:Message-ID:Reply-To:From; b=E387OEiWizR1xupWorII40wTaO5GTyNHQCxiuBFaeU+YuuZXXXiQHlNaJ86EAMt+M fsPohGCi537ipHQJZfD7BWsRMx4Bbp82GLpyEamPTixb2wowCwp68/v5NI2SeibM4T 3MeD4Iblp8GexRhV/ZrWP/1tKkUo/wQAXrL4HsPU= Authentication-Results: mail-nwsmtp-smtp-production-main-73.iva.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Fri, 22 Dec 2023 18:53:39 -0000 Date: Fri, 22 Dec 2023 21:53:39 +0300 From: Andrey Repin X-Mailer: The Bat! (v9.3.4) Professional Reply-To: cygwin@cygwin.com Message-ID: <1502052023.20231222215339@yandex.ru> To: Martin Wege , cygwin@cygwin.com Subject: Re: rfe: CYGWIN fslinktypes option? Re: Catastrophic Cygwin find . -ls, grep performance on samba share compared to WSL&Linux In-Reply-To: References: <07c7379e983c9f436ebf86e3818ca843@kylheku.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,KAM_THEBAT,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE,XM_LIGHT_HEAVY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Greetings, Martin Wege! > The root cause is IMO the extra Win32 syscalls (>= 3 per file lookup, > compared to 1 on Linux) to lookup the *.lnk and *.exe.lnk files on > filesystems which have native link support (NTFS, ReFS, SMBFS, NFS). Except you require elevation to actually create symlinks. Or some special system configuration. > On SMBFS and NFS it hurts the most, because access latency is the > highest for networked filesystems. > So my proposal would be to add an option ('fslinktypes') to the CYGWIN > environment variable to define which types of links are supported: > default 'all'. which is an shortcut for 'native,lnk,lnkexe'. > So in case people do not want 'lnk' link support they just add > CYGWIN+=' fslinktypes:native' to env, to turn off support for > lnk/lnk.exe style links, and be happy. > @Corinna Vinschen Would that be acceptable? Make a patch to begin discussion. Also, not all mangling is meaningful to disable. F.e. disabling .exe magic on Windows would be surprising to the end user. -- With best regards, Andrey Repin Friday, December 22, 2023 21:50:58 Sorry for my terrible english...