Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B699B60DA for ; Fri, 8 Jul 2011 15:07:28 +0000 (UTC) Received: (qmail 48665 invoked by uid 500); 8 Jul 2011 15:07:28 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 48499 invoked by uid 500); 8 Jul 2011 15:07:27 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 48491 invoked by uid 99); 8 Jul 2011 15:07:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2011 15:07:27 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ted.dunning@gmail.com designates 209.85.216.178 as permitted sender) Received: from [209.85.216.178] (HELO mail-qy0-f178.google.com) (209.85.216.178) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2011 15:07:22 +0000 Received: by qyk27 with SMTP id 27so1175410qyk.9 for ; Fri, 08 Jul 2011 08:07:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=vMVkaFjImBtQtmvXeL14unxWZ6aveaLWg8CFHVsjTgw=; b=i2KybaEhaKNKrvKReB8LG8cEcPRW84+cqj+5ql+8ilqd9y4W19m9StHYXCONFSMMCZ UkZ3II/PeLOC8LD8NOapb9yCCokeqXOhthviCqIUxLiMKlfclchKRq4l3e5eXU/ILsHp zDSokrHqBvif8NsZGpE/KlKvn6mypPlRVl0W0= Received: by 10.224.113.81 with SMTP id z17mr1571606qap.158.1310137621163; Fri, 08 Jul 2011 08:07:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.20.76 with HTTP; Fri, 8 Jul 2011 08:06:41 -0700 (PDT) In-Reply-To: References: <20110708064415.43461140000B8@svoboda.polytechnique.org> <4E16D6A4.5080003@free.fr> From: Ted Dunning Date: Fri, 8 Jul 2011 08:06:41 -0700 Message-ID: Subject: Re: [math] Iterative linear solvers (MATH-581) again To: Commons Developers List Content-Type: multipart/alternative; boundary=bcaec54313ac842f2e04a7902fd9 --bcaec54313ac842f2e04a7902fd9 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable As your measurements indicate, the allocation of large objects is rarely a speed issue. It can be a memory fragmentation issue, but a full GC will fi= x that as well. People who are stressed about allocation of result vectors such as what you are doing are mostly worried about the wrong thing. 2011/7/8 S=C3=A9bastien Brisard > The thing is the first option is not frequently met in Commons-Math. > I've started to work with this option for iterative linear solvers, > but I do not like the inconsistent feel it has with the rest of CM. > Also, very crude monitoring on rather large linear systems (800,000 x > 800,000) shows that memory allocations are not even measurable... As > I said, I read that a long time ago, and someone already mentioned on > this forum that GC is getting pretty good those days... So is it > really worth worrying about memory allocation? > --bcaec54313ac842f2e04a7902fd9--