From owner-freebsd-current Sat Jan 1 17:50:34 2000 Delivered-To: freebsd-current@freebsd.org Received: from monty.pp.sci.fi (monty.pp.sci.fi [195.74.24.156]) by hub.freebsd.org (Postfix) with ESMTP id E51ED15024 for ; Sat, 1 Jan 2000 17:50:30 -0800 (PST) (envelope-from monty@monty.pp.sci.fi) Received: (from monty@localhost) by monty.pp.sci.fi (8.9.3/8.8.7) id DAA21424; Sun, 2 Jan 2000 03:50:58 +0200 From: Michael Widenius MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14446.44802.533912.420861@monty.pp.sci.fi> Date: Sun, 2 Jan 2000 03:50:58 +0200 (EET) To: Leif Neland Cc: Paul DuBois , mysql@lists.mysql.com, freebsd-current@freebsd.org Subject: Re: 2 hours to compile mysql? In-Reply-To: References: <14446.19685.932082.417212@monty.pp.sci.fi> X-Mailer: VM 6.72 under 21.1 (patch 7) "Biscayne" XEmacs Lucid Reply-To: monty@tcx.se Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>>>> "Leif" == Leif Neland writes: >> 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 >> Leif> Is amount of ram available (portably) to configure? I don't think thats easy to check for.. Aother problem is also that even if you have only little ram, you may still want to compile MySQL without --low-memory, because the final code is much better if you don't have to use --low-memory. Leif> So configure could decide to use --low-memory by itself? Allowing Leif> overrides, naturally. Leif> Leif Regards, Monty To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message