DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 56LFKeg52989961 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 56LFKeg52989961 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=KRFuEmoP X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6B3553858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1753111239; bh=quiE9EaU9IbkaD4L4JTWedN2IJ3CVqd+371FKMzShLY=; 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=KRFuEmoPwVwSp5LTheILGlqwhgfPp4gLx2dHpXnmKhABeJ/qsQiDIwxESJZ5z2pZh fBVazdWtZE8yqzoGfGGjmVezzy2g7VBFosGfN973TzEN8jnQyFi1XnltHUSC1xH0oP 6KpIMTBHVMNcRwfA7WcLvai3ZJnmHH6UThlMFtc8= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 46F933858D1E ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 46F933858D1E ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1753111183; cv=none; b=s4Vesaad1HeQos0ShpNyvmDiif55UEZ+bOborZaN4tIrqxZ1wRQXLkx/B4Xczy6Wt+l9iwU0R5fFvK3DSod6KPY/dJucjeoVcBUY97/0ohRQOh01BakUJbKlvTXMx1lW80laHjoVBPMH05iRvPiLXdjb55sn0YuHNZo+Rm+43jI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1753111183; c=relaxed/simple; bh=3Fjs3yyHlJCqWWzmJd4cWV0j+o3HL2rYBn8V3L3pbkU=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=terWasZiHeP2uSO6c/x7My8X+QfaxGPm0wouH3DRUmfBMP5TvJchL5EKgM0IoqUlJlCL/RYgFmWmrL5qvzeW1QZKCpwYuWVSInROjEkAkeyM77bnkt/qhu8G82NXPiI6cVaQT0VjtPrmzCN7jfMA/93SZtyiPHxtXeXCoIZ2YkU= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 46F933858D1E X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753111178; x=1753715978; 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=3Fjs3yyHlJCqWWzmJd4cWV0j+o3HL2rYBn8V3L3pbkU=; b=lItaCqWWC5eDepRGxj6HXWsZKlVQmZiqlpowWsAgUxHl2UYT0GmBNi0eNizlrLsq92 paWQHtYlblvb2q+vJRiPj1RxQMX16TANqOvz4eSEWRDX4/iBWBkcDkdWeUqAuTzsydHf 8OhbxvAP3oV/ICUDhu8nGMBU6eDAD8YHJgtn0HciyoDKVQpvOk+afY+E3g44Q5YQswH3 QxKWX5pgthpMX1ker9cprAXVCEjxmtEhRUzC4OCpzuCFzI4abVVlw0wm0dOOyljV6dQT JPKyr2C9ymXxUcRE+ipgvNObpcSfmUMCemu+PuEYROmUn7L4CKijOOI70K2kQHHxCPef bpCA== X-Gm-Message-State: AOJu0YyeMVUwxaeg9fyxvhDyKTeLNvqXDlJF3Pxb9PL1R6iBp21TfLbc qZ1k50nt9GR84Uow7zwLGF0Mo1303q0Ktz6ybEc9omgJ6yAQOid5J6VVmjMTgAQo0D/JJPsBxEq nw/hp3z/47bq8STsTHYCZ0Fogu+7ZdOXpgrKsmK8= X-Gm-Gg: ASbGncteGIXoAKsULpw6zXj9xjLyN84j3g/hIPnEz9ORxI8Ei0t0Cp1+fy304ke3Dqb CsOLAmk88pZF+5XYyEKmTYOATdU9b8q7+w9keEboH2wvPBW6/a76TLvKNTLqxWBbdId4h8qDlew qyE7YP7wdeTWd4APA9yxj9PEtWmOtFN4jZtpfhx1D2ogQTCIMkDmNKhP2nAHArJLtbmIQgC4EBt L2RTJY= X-Google-Smtp-Source: AGHT+IFmc+3Yv4B5qdhUFvoMfwZrsk1hOkOeUFW9wWA9LSzcd4Ud90tIbqPHFck2/dx1f2BytuTcahiX1NwUxxMKHcA= X-Received: by 2002:a17:906:6a17:b0:ae0:dfa5:3520 with SMTP id a640c23a62f3a-ae9ce0d2ce4mr2177922066b.31.1753111177812; Mon, 21 Jul 2025 08:19:37 -0700 (PDT) MIME-Version: 1.0 References: <45887d0a-17d3-40ce-bea5-13fdf9081edd AT systematicsw DOT ab DOT ca> <3da288a3-3a70-41ca-b582-67500ae0fb9e AT SystematicSW DOT ab DOT ca> <1833586910 DOT 20250718134434 AT yandex DOT ru> In-Reply-To: <1833586910.20250718134434@yandex.ru> Date: Mon, 21 Jul 2025 17:19:00 +0200 X-Gm-Features: Ac12FXzbgtwswoBLxcs_9OlA5cloNj3dmMgkoS6O-TT9DtN_iomp0GITQwYJS00 Message-ID: Subject: Re: SLOW ls(1) - cygwin dir lookups with WinNT async requests? To: cygwin AT cygwin DOT com 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: =?utf-8?q?Aur=C3=A9lien_Couderc_via_Cygwin?= Reply-To: =?UTF-8?Q?Aur=C3=A9lien_Couderc?= Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 56LFKeg52989961 On Fri, Jul 18, 2025 at 12:50 PM Andrey Repin wrote: > > 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? Because I am not YET qualified? This is god level Cygwin hacking level, like Corinna Vinschen can do. I'm just a student, doing some ReactOS/Windows hacking. Aurélien -- Aurélien Couderc Big Data/Data mining expert, chess enthusiast -- 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