From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28686 invoked by alias); 2 Sep 2002 21:34:15 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 28678 invoked from network); 2 Sep 2002 21:34:14 -0000 Received: from unknown (HELO mail.broadpark.no) (217.13.4.9) by sources.redhat.com with SMTP; 2 Sep 2002 21:34:14 -0000 Received: from dualc2000 (22.80-202-24.nextgentel.com [80.202.24.22]) by mail.broadpark.no (Postfix) with SMTP id 946E37DB0 for ; Mon, 2 Sep 2002 23:34:12 +0200 (MEST) From: "Dan Vasaru" To: Subject: RE: A Simple Real World Benchmark for cygwin Date: Mon, 02 Sep 2002 14:34:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal In-Reply-To: <20020902155542.GC14051@redhat.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-SW-Source: 2002-09/txt/msg00050.txt.bz2 cgf> or investigate the code and offer ways to speed it up. Here's a potential speedup for non-NTFS symlinks: The check_shortcut function in shortcut.c calls CoInitialize/CoUninitialize for *every* .LNK it needs to check on non EA filesystems. I ran a small test on my computer, calling check_shortcut 1000 times. When I moved the calls to CoInitialze/CoUnitialize outside the check_shortcut function, the function throughput increased from 59 calls/sec to 960 calls/sec. As it turns out, CoInit...CoUninit costs up to 20 msecs on my system. So my suggestion is that the CoInit../CoUnit... calls be moved to another spot, to be called once per thread. Dan. PS. This patch made no difference what-so-ever on the timing results of the cygbench configure on my NTFS disks; then again, it may help FATxx/Samba/NFS people. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/