From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Matt Wette Newsgroups: gmane.lisp.guile.devel Subject: compile-file execution time driven by `reap-pipes' Date: Mon, 6 Apr 2020 19:50:13 -0700 Message-ID: <65448df1-5fd7-c0c3-852c-432c093915b2@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="77315"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Tue Apr 07 04:50:37 2020 Return-path: Envelope-to: guile-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jLeJv-000K0j-CD for guile-devel@m.gmane-mx.org; Tue, 07 Apr 2020 04:50:35 +0200 Original-Received: from localhost ([::1]:40078 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jLeJu-0005Pl-F6 for guile-devel@m.gmane-mx.org; Mon, 06 Apr 2020 22:50:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42522) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jLeJe-0005NO-Tq for guile-devel@gnu.org; Mon, 06 Apr 2020 22:50:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jLeJd-0004S8-Tw for guile-devel@gnu.org; Mon, 06 Apr 2020 22:50:18 -0400 Original-Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]:36834) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jLeJd-0004RG-Bd for guile-devel@gnu.org; Mon, 06 Apr 2020 22:50:17 -0400 Original-Received: by mail-pg1-x533.google.com with SMTP id c23so1030408pgj.3 for ; Mon, 06 Apr 2020 19:50:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=2+GAdOx+Qml08RddeQpBOJqlSLzku2bWEC2THidReo4=; b=usOP8MFFCcvIz9msAsNk/CrA1Vw4VYBDi1pU9k2wR/CHk5xMhSk1/bcGO9YEvWdIrS XEAAD/5rTstzu13BJ61Fdla4A6robLmNSH+C0GIf+K7HjmTZePZRZlylx++G2Zalo2Gq aRSvT7x4wi3veKHY8nGvnd6sYUi5uxSKbhVEhlWtYBVH4rudsDx1OomBpVTriDhH3GKf H3sSNDrxLJeJoJrD0XAZI/jRvqREQJyucKdWWWD51ZAXgRMyQt23LiH2lLUYLL3lY43k eVIXC7npy+xwFZk+vX1kD9up2n4HSeDzxguMvwDg8tIYZFTjA0sl+I49WNE6GBAsgPi+ kQXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=2+GAdOx+Qml08RddeQpBOJqlSLzku2bWEC2THidReo4=; b=WO8V+6oIisIW6K/LVGF1lcAhZooO57YuFO35Te7thRLt1rQBMZXVljhSZn7AW8KqTn 00dPGZaBvRa+3S9jBDJAurmKTeprS6ouES7bs2U2JAjqzNTnr3Q3div5CjuMnKneI4yN S1MwW4jo9VC0o0JTufvPXRas2UPmHlO0cV818mvweXZHfn0Yf8jROhWVDlmXsvYDZUDW 4Q57DSzpTEndQ7tSB193mJ8RHurPEsk8RhKk63VOL0se2AE3uTQ1CKs0R8MGoo3dT8s9 U0JytGs3ni8E6yAQ9KbmQ4JoBm0NKSS4wKIQ/iJGgY+8mGP0ohuBcfV/nj/TVu1/J3zT aPig== X-Gm-Message-State: AGi0PuYreuAuyKuY3cktj2NjgvmfVp0xVtTvj6LbKkPXh8FEvqEiH5jV RvVQhhwGCkQtK4AvvXbQ/l+5MmkT X-Google-Smtp-Source: APiQypKrzZr2l9i3kzOG2FfEWTJCw4XQ8y7psGhVv7FND9IursUTTwYrRvSgFfGH1QmKg3r2fs969A== X-Received: by 2002:a62:de83:: with SMTP id h125mr432551pfg.161.1586227814946; Mon, 06 Apr 2020 19:50:14 -0700 (PDT) Original-Received: from [192.168.2.183] (64-52-176-132.championbroadband.com. [64.52.176.132]) by smtp.gmail.com with ESMTPSA id y131sm12625435pfb.78.2020.04.06.19.50.14 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Apr 2020 19:50:14 -0700 (PDT) Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::533 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.io gmane.lisp.guile.devel:20483 Archived-At: I'm wanted to trace down why some of my "compile-file" w/ no optimization was tasking time. I was able to turn compile-file under statprof for one of the moderate sized .scm files, which has about 45,000 lines of code. It was interesting that the major execution time consumer was reap-pipes. I'm curious where that fits in. Does anyone know how compile-file could be banging on reap-pipes so much? Below is the top output from statprof. The results are for a run using guile 3.0.2 on Ubunu 18.04/x86_64. % cumulative self calls time seconds seconds procedure 12.67 190.96 154.99 ice-9/popen.scm:145:0:reap-pipes 12.30 363.41 150.49 language/cps/intset.scm:270:2:adjoin 11.23 270.27 137.34 anon #x55befcb4c430 10.89 186.95 133.18 language/cps/slot-allocation.scm:843:19 10.58 129.40 129.40 language/cps/intmap.scm:396:0:intmap-ref 5.31 1279.35 64.90 language/cps/intmap.scm:247:2:adjoin 3.81 228.54 46.66 language/cps/intset.scm:269:0:intset-add 3.48 4695.90 42.60 language/cps/intset.scm:470:5:visit-branch 3.28 40.14 40.14 language/cps/intset.scm:349:0:intset-ref 2.98 567.14 36.46 language/cps/intmap.scm:246:0:intmap-add