public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
From: Per Bothner <per@bothner.com>
To: kawa@sourceware.org
Subject: Re: n arity with method
Date: Sun, 19 Nov 2023 09:50:07 -0800	[thread overview]
Message-ID: <e186b92e-42ba-4444-906f-beb384399018@bothner.com> (raw)
In-Reply-To: <CADEOadcHg_ZSe+szAn401-Aim1Q_g39+7pQ4HxcY-KNkAM6X9w@mail.gmail.com>

On 11/18/23 23:23, Damien Mattei via Kawa wrote:
> when comparing speed on the first part of my program written in Scheme+ it
> run in 15" with Kawa and 7" in Racket.

It is likely you can speed up Kawa quite a bit by fixing a few slow spots.
Specifically, anytime you do run-time reflection (or worse: eval/load) you're
going to lose a lot of performance. If you can replace generic arithmetic
or vector/list indexing with type-specific arithmetic/indexing that can
also make a big difference. List processing (especially if you call cons
a lot) is always going to be relatively expensive.

Profiling is probably the thing to try. I do little-to-no Java programming
these days, so I can't be any more specific with help.
-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/

  reply	other threads:[~2023-11-19 17:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-16 22:53 Damien Mattei
2023-11-18 11:14 ` Damien Mattei
2023-11-19  7:23   ` Damien Mattei
2023-11-19 17:50     ` Per Bothner [this message]
2023-11-20 13:51       ` Damien Mattei
2023-11-21  8:48         ` Damien Mattei
2023-11-22 10:03           ` Damien Mattei

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e186b92e-42ba-4444-906f-beb384399018@bothner.com \
    --to=per@bothner.com \
    --cc=kawa@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).