From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?Q?Aleix_Conchillo_Flaqu=C3=A9?= Newsgroups: gmane.lisp.guile.user,gmane.lisp.guile.devel Subject: Re: Guile's time execution issues Date: Sun, 3 May 2020 17:32:29 -0700 Message-ID: References: <87d07u182a.fsf@gnu.org> <87a72q77gr.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="121883"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user , guile-devel To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Mon May 04 02:32:57 2020 Return-path: Envelope-to: guile-user@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 1jVP2X-000VaM-A0 for guile-user@m.gmane-mx.org; Mon, 04 May 2020 02:32:57 +0200 Original-Received: from localhost ([::1]:53324 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVP2W-0004Mw-Bx for guile-user@m.gmane-mx.org; Sun, 03 May 2020 20:32:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39722) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVP2K-0004MO-JR; Sun, 03 May 2020 20:32:44 -0400 Original-Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]:46428) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jVP2J-0005kW-Ka; Sun, 03 May 2020 20:32:44 -0400 Original-Received: by mail-lf1-x133.google.com with SMTP id g10so8201951lfj.13; Sun, 03 May 2020 17:32:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0Mfg+ieRpZXg89haKW11ZStv2y1LkYbSd6CNU7N1qtI=; b=XWOyVF5umfrwZxAT0G3Bng4JLGFcgANzY7juJMrxhwwZbrYmQLfIhlHY87qHCOWcfv 4KTTZNc/oRqdMqDnbc8psSJuMMXPvVneTvjL+AWwAeoBpbpMsj58z2RQVMwnln/hCwrp Q9NoiR0agKCHYwGFNAlyQ8bQNCkVIdA0QAdKMVOIz+D/j7hjYFATaAapOfdzoPCzAFlv OQjK5knwjbd0wgizkd5nSt7WejgAtIdDd5qjQ1SEVvXK3cmIgQz8jSoQZPHNMMXFhmRV idgfuWTYuET6oIJH5Ho7TCuetgMYjVoixjCsejx3mR7JqsRkqamRcTO3N6vBxSM+hsOq 9afg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0Mfg+ieRpZXg89haKW11ZStv2y1LkYbSd6CNU7N1qtI=; b=Uz1BYzWNFCtC7r4jYjMb0GKgxpCdypfNTvcGoMKphhEX3NzhDx6taw2QRWcEwbGFcA GM8PGR3/1u3uPcuvC8Z+B3pA1AFT9SeSvnRqKzL6OhnUcy/yoevLt0r9ZYXi0Yl5I00v i5HTRd7JnRKF+mTeGTBjIT79+OiGEQX1FnmIPlzBwyae3OMMI14oYQ/YZXWNSlfwuc/q ad6IhRLYEPNfUak0a7KtU/bevsAmY3jqZjEIa+q1GsW/MGqWxDWbber3BnWAygn/s7BB bQnfHvrFpgQyHUOTXhOfC6AreQzzOgZ++vE4Zzajc18ydUcAvLZ8qgqIyyqJ9/Z0kR7q OeBQ== X-Gm-Message-State: AGi0PuZyPW+7xV+ZXcxYdI2RlleJpU6c+o0h6xXWULSxRw+rydqGQe3v mX1K7jkWDEHuM4M0Z0pjCRn+dKbL5mLGZeT3YaEAM+KZ X-Google-Smtp-Source: APiQypIIpnxm/FcPkvHMg6TtfuokLbKWy9LmJY0Fl1qnLYEZ407q729+2bSIz/DerFUH8AlBeKervyNRyldXlhGkQ0w= X-Received: by 2002:a05:6512:10d0:: with SMTP id k16mr9930868lfg.71.1588552360160; Sun, 03 May 2020 17:32:40 -0700 (PDT) In-Reply-To: <87a72q77gr.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::133; envelope-from=aconchillo@gmail.com; helo=mail-lf1-x133.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:16421 gmane.lisp.guile.devel:20506 Archived-At: On Sat, May 2, 2020 at 7:11 AM Ludovic Court=C3=A8s wrote: > Hola! > > Hola! So weird I'm getting different numbers on 2.2.7. Not sure how I'm getting those initial ~20s and you are getting consistent ~ 45s. It shouldn't have nothing to do with it, but could it be I'm running it on macOS? Now, it would be good to profile =E2=80=98json->scm=E2=80=99 to see if ther= e=E2=80=99s anything > that could be improved on the Guile side, or if it=E2=80=99s just a norma= l > profile for GC-intensive code. > > Good news is that I have been working on performance improvements and json->scm is going down from my ~19 seconds to ~3 seconds on the same sample file. Linus Bj=C3=B6rnstam was the one to bring up performance issue= s so we've been back and forth trying to make it fast. One thing I found is that `match` is slow. The code looked nicer but had to change it back to lets and conds as the performance increase was ~2 seconds= . Thanks for looking into this, Aleix