DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 56IAp8vw2612623 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 56IAp8vw2612623 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=boneysxp X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 67803385E007 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1752835866; bh=nx3wG5K/lSLJ4/nzeCxXu7Kcsx922tlHaKU5jmyE3xo=; h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=boneysxpCAqfO4f8Z4Kqu6K0OgBbWDFWw3RXCMBCN9jTqJqEACBYn5VpVREknM1g+ kaHAevffNQ06Vgh84GG35LFqllpoIizAMk97Vj4+shgZfhN4f6j7GwkW77P68nGrtq NMrPvcrklSJdz/ncpXlJQ+/ptsGffGYGXUQNR4FU= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0D6BE3858C60 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0D6BE3858C60 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1752835803; cv=none; b=Gbnjhgnlq2H62PqwSa+6vA+cqAkUIOhrvdhayh5uKV71YaYYHHlPj7cdyVSdQBesnayvBveu59G8fEg+sd4zOICEvbXTUvw0JeO/pePLVq7ITi25AX9LfCsJ+DNHZKMrW879U9U6Ex830VSw43ehTh81m1f3ZlFiKHUqDU8z33k= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1752835803; c=relaxed/simple; bh=fGJpmL2aUIpMaKzUYS7Tg3kPtHAODD9SyrMzjCj8Bc0=; h=DKIM-Signature:Date:From:Message-ID:To:Subject:MIME-Version; b=RxUhi2ILrEfIoBClJ5msequ/+uu3JMRdF+uufvysmftwrC5tRFwc3t72v4aQ2nYm55DzeIomWxz4br4qI5vMbePd/X+z66fTHifU25rbs5uNvOXJ5XM1R/De/PQ0n6c41yHTVAgajcpewxX1rxdvPC0rC7H46ml35m0SCJWXjTc= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0D6BE3858C60 X-Yandex-Fwd: 1 Date: Fri, 18 Jul 2025 13:44:34 +0300 X-Mailer: The Bat! (v9.3.4) Professional Message-ID: <1833586910.20250718134434@yandex.ru> To: =?utf-8?Q?Aur=C3=A9lien_Couderc?= , cygwin AT cygwin DOT com Subject: Re: SLOW ls(1) - cygwin dir lookups with WinNT async requests? In-Reply-To: References: <45887d0a-17d3-40ce-bea5-13fdf9081edd AT systematicsw DOT ab DOT ca> <3da288a3-3a70-41ca-b582-67500ae0fb9e AT SystematicSW DOT ab DOT ca> MIME-Version: 1.0 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Andrey Repin via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Andrey Repin Content-Type: text/plain; charset="utf-8" Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 56IAp8vw2612623 Greetings, Aurélien Couderc! >> >> Stat and ACL info require additional calls. >> >> > Right, but my proposal is to do parallel/async lookups. The Windows NT >> > kernel depends heavily on multithreading and parallelism, of which >> > Cygwin uses nothing right now for dir lookups. >> >> Not an option unless it can be cheaply done under winsup/cygwin/fhandler. >> Most utilities are GNU/BSD/Linux ports, so custom mods would have to be >> submitted and accepted upstream, as we often already have enough patches to >> maintain, to get them to build and work cleanly under Cygwin. > I think you misunderstand me. I am suggesting to improve the Cygwin > implementation of opendir(), readdir() and friends to do Win32/WInNT > calls async to speed up dir listings. If you know how it can be done, why not provide a patch? -- With best regards, Andrey Repin Friday, July 18, 2025 13:44:05 Sorry for my terrible english... -- 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