delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/29/10:51:36

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SARE_MSGID_LONG40,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <680267dc1003290849s45f96dd6t1eacd043f53f7334@mail.gmail.com>
References: <680267dc1003290849s45f96dd6t1eacd043f53f7334 AT mail DOT gmail DOT com>
Date: Mon, 29 Mar 2010 18:51:24 +0300
Message-ID: <680267dc1003290851i67c10a82hf4e5c48a47969320@mail.gmail.com>
Subject: slow file open
From: Erdem Guven <erdemeguven AT gmail DOT com>
To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hello,

My application uses fopen to open a lot of files. While in linux
opening and reading thousand of files doesn't even take a second; in
cygwin it takes more than 5 seconds.

I think it is because path conversion functions in cygwin dlls. 'open'
function is a bit faster. If I use -mno-cygwin it becomes very fast
but I can't use it.

Is there an easy way to make cygwin dlls just open files; without any
linux-windows conversion?

Erdem

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019