X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7BC6E3864856 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1703175043; bh=ONlwNHjN3jaDryiyhAunK41A+tWMRGqUgnNLZl9XM78=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=LWjlrShLgx8UYCXvl62vyfvT+KM5G0LUhdOfszhE+ZJO6r/XkOhhaCzwm7ttg08a7 zizmwYL66w16LyAk3knPb4GlB/RHt1IYTyuz6kwLfO0S7rNf/x5UWQ4g8d055xnYX5 ObJ/UBCjk7GL9gtGRQ17awoHemX5sf3reoAsFQ/s= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E99783857C53 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E99783857C53 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703175008; cv=none; b=IBnS81qg09pddKaMmdH72lfT98DM8lsay5VN6O0PfhsiOaaDSYDz6i5h1ayk07ERFouihtjxbEjKrNP0lNqU7ZxVQHoXGBgbVUezrRW+39R5xRXzAjedzgd36hLQtWK2KstsKMQDD/lqVO3lIK3i+qhL0EZlr1rw0e7Rbf0oG7c= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703175008; c=relaxed/simple; bh=Yo3OBLC56KVPvXBDsxCKcIaEzeYNJJhDTaCGEc7xALg=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=qZf+6eYZVVzk45SikIcS3SH+JikEatJvC5nyZLDM0Qhe+CRdWOle5FEdHsnWQbKxI7ItEPRdcKze39pvI+8/tR6/AUywH/iit8h2y0T+KA5IkAMk2iZu/PWbVda0wViGwQaSMoYRIFpzwRNJxt69jWDZVoPcOTWOUZ07ApQylc4= ARC-Authentication-Results: i=1; server2.sourceware.org X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703175004; x=1703779804; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Yo3OBLC56KVPvXBDsxCKcIaEzeYNJJhDTaCGEc7xALg=; b=P7MRA5eks9pQH3Cfqwlm3/yVD435qvsPB0UqMpV4CVmI2MiH3ds/4C7xOS5HXr560r zNZBj1Us9h5qxRliuJcDwMbJ9FKKBuse9NNX9H6Esfl7yBfZcQ2H3Fcak/441R3jj1z6 jvh/elXjmN8smfn0t3WIbblgz47/MtR8n8E6iHJ929j4UlaqdYqzPtBkURaZC6pk+Qmz 0klZRPSBDn1NhViaWxAnXAramoYJeCQjg+SHvrA2DzA+Z0iKo0HwKTPJkIrD5Osf8N5P cEAvIYekPNU5vPVHhacbONWDX74B0I1kadH0JLxOShZ7vN1FbS3Tb+eHTUv+NacHFAmA 49vg== X-Gm-Message-State: AOJu0YxAd7QqB8Za5rRh3omzWrbcDIem03yl0W2CS7v2I2QQcAkgOk1i C3aA+yvnS8SUD6C76+SAFmDm4r5MRh5JYjAj4SMLd0IC6+E= X-Google-Smtp-Source: AGHT+IFbYUTa8v0A7YhP2jFqRa7/TxVs6uZcd07tEnBnpIt53iZzDUxrVgO9Hh41puWwAst1d032drXioDDN3QzKD3A= X-Received: by 2002:a50:9f27:0:b0:553:a375:db4e with SMTP id b36-20020a509f27000000b00553a375db4emr2867073edf.18.1703175003926; Thu, 21 Dec 2023 08:10:03 -0800 (PST) MIME-Version: 1.0 References: <07c7379e983c9f436ebf86e3818ca843 AT kylheku DOT com> In-Reply-To: Date: Thu, 21 Dec 2023 17:10:00 +0100 Message-ID: Subject: Re: rfe: CYGWIN fslinktypes option? Re: Catastrophic Cygwin find . -ls, grep performance on samba share compared to WSL&Linux To: cygwin AT cygwin DOT com X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Cedric Blancher via Cygwin Reply-To: Cedric Blancher Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 3BLGAigj015125 On Thu, 21 Dec 2023 at 13:17, Martin Wege via Cygwin wrote: > > On Wed, Dec 20, 2023 at 6:21 PM Kaz Kylheku via Cygwin > wrote: > > > > On 2023-12-17 22:22, Dan Shelton via Cygwin wrote: > > > It would be nice if someone from the Cygwin authors could assist me in > > > figuring out why this happens. > > > > Cygwin is famously slow; this is nothing new. We are grateful > > for Cygwin because it makes stuff work at all; if it were blazing > > fast that would be a bonus. > > > > E.g. git operations (clone, rebase, ...); ./configure scripts; ...: all > > run like molasses. > > > > The following is just my fast and loose opinion, shot from the hip, > > and possibly off or wrong, but it likely has to do with the layering. > > Cygwin's core API is based on a C library called Newlib. Cygwin bolts > > Newlib to Windows by means of an additional shim below Newlib that > > is based on C++ objects, where there is path munging going on and such, > > and that's where the Win32 calls get made. It's an additional abstraction. > > I disagree with that. Ok, part of that is that the layering causes > more memory allocations and copies, but this is not the root cause. > > 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). > 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? +1 for this proposal, which is almost the same idea as I proposed in https://www.mail-archive.com/cygwin AT cygwin DOT com/msg174612.html Ced -- Cedric Blancher [https://plus.google.com/u/0/+CedricBlancher/] Institute Pasteur -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple