From owner-freebsd-current Sat Jan 1 15: 8: 2 2000 Delivered-To: freebsd-current@freebsd.org Received: from arnold.neland.dk (mail.neland.dk [194.255.12.232]) by hub.freebsd.org (Postfix) with ESMTP id 5EE2314C45 for ; Sat, 1 Jan 2000 15:07:59 -0800 (PST) (envelope-from leif@neland.dk) Received: from localhost (leif@localhost) by arnold.neland.dk (8.9.3/8.9.3) with ESMTP id AAA57087; Sun, 2 Jan 2000 00:07:45 +0100 (CET) (envelope-from leif@neland.dk) Date: Sun, 2 Jan 2000 00:07:45 +0100 (CET) From: Leif Neland To: monty@tcx.se Cc: Paul DuBois , mysql@lists.mysql.com, freebsd-current@freebsd.org Subject: Re: 2 hours to compile mysql? In-Reply-To: <14446.19685.932082.417212@monty.pp.sci.fi> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > The reason for this is that some gcc optimizations stages takes > exponentially more memory when compiling big functions. > bison produces one big function for the grammar parsing and its > this that takes a long time to compile; To compile sql_yacc.cc quickly > on Intel, you nead at least 160M of free ram. On a PentiumII 400mz with 256M > ram, it takes 11 seconds to compile sql_yacc.o. Having to use swap > can easily make things 1000 times slower > Is amount of ram available (portably) to configure? So configure could decide to use --low-memory by itself? Allowing overrides, naturally. Leif To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message