delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
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 |
Message-ID: | <4272DB25.5010409@aaronwl.com> |
Date: | Fri, 29 Apr 2005 20:11:01 -0500 |
From: | "Aaron W. LaFramboise" <aaronpurpleleaf4 AT aaronwl DOT com> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041217 |
MIME-Version: | 1.0 |
To: | Isselmou dellahy <disselmou AT hotmail DOT com> |
CC: | cygwin AT cygwin DOT com |
Subject: | Re: An intolerably slow behavior during a cascade of constructor calls |
References: | <BAY101-F25E7444435B17D1D5065D9BC240 AT phx DOT gbl> |
In-Reply-To: | <BAY101-F25E7444435B17D1D5065D9BC240@phx.gbl> |
X-IsSubscribed: | yes |
Isselmou dellahy wrote: > The magnitude of the problem is such that, the same program compiled on > Linux and run on a similar machine, runs in 4 seconds while it needs more > than 10 minutes on cygwin. > > Here's a tentative minimal program that failed though to reproduce the slow > behavior (probably because I do not load any big file). It might be more useful if you would share a minimal program that reproduced the problem you are referring to. Nothing in this code seems particular problematic with regards to performance efficiency. The way to figure out these sorts of problems quickly are to use the debugger (gdb) in the usual manner (try just hitting Ctrl-C sometime during the 'hang' while running under the debugger), or the profiler, gprof. If you haven't used gprof before, check out its manual (info gprof) and try it out. To get started quickly, just run a series of commands such as: g++ -pg -o your_program your_program.cpp # The -pg option enables # profiling. ./your_program # Run your program normally. # It will generate a file # named gmon.out. gprof your_program # gprof will output # human-readable profiling # information. Generally speaking, the debugger and the profiler should be your first resort when confronted with this catagory of problem. However, this is not specific to your particular problem or Cygwin. Someone else on this list might be able to provide you with more information. Aaron W. LaFramboise -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |