From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailtransmit04.runbox.com (mailtransmit04.runbox.com [IPv6:2a0c:5a00:149::25]) by sourceware.org (Postfix) with ESMTPS id C15A13858C33 for ; Sun, 19 Nov 2023 17:50:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C15A13858C33 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=bothner.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=bothner.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C15A13858C33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a0c:5a00:149::25 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700416225; cv=none; b=IZ+m5RdSkoghSiwioaOJV6ULP41wx9GzUhkvNZubNLzoDHBMVIP6OIGP831FRcMruGEUSCM1Ajj4ids7Vhi8aALMwhRcO7L6bNnfnmOyNWs32yAPztz88Yywahwxp8R3T7rV/Ut8vvp9qbJQc7EkhChQ9MH2wH9Q3KIo+vDPjHc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700416225; c=relaxed/simple; bh=lp7usaGVGqLKIsRy/gMwzlDkWI1pshS5gwwDl97bWzY=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=RjPgMWpN2tjQJ6WNXppW7jlpKiD5U6rvEeJbyaL3FzcJPZAjx7r0jxD2xCMbsKD2m87ab5fezX60pJmGmHBn4PdVRJMmam2HOvAY6BESyRP2TqQBNdm38NlYmTrGvp53SXTnKHh+H+nJNNwxX74CwTCSb/oii1/3faP80qjfc+k= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from mailtransmit03.runbox ([10.9.9.163] helo=aibo.runbox.com) by mailtransmit04.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1r4lw5-00ACiT-48 for kawa@sourceware.org; Sun, 19 Nov 2023 18:50:21 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=bothner.com ; s=selector1; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:To:Subject:MIME-Version:Date:Message-ID; bh=PtuJB7lcSvnmB2QP12AWEWzT9cohCG1OwfpTGs9WyF4=; b=rCoQItG+TrQFQDizqgY0oUJiDu XXwct/3vwlADruCLqx0JBmNEzTTpKIg5CFQjXgYtBwSlFfloR+7FMG3/kdbLtsMTEgCO3BwJsF3pL wAlPXA/wMUwgzkhXCkSf6905UEC+PDGd4YimS3wvJfR/TA9FoGZKRpAmaBEZVu1IvybBAWW+hjFKm mSPT22gH1NBIFrJMC2kAQw/rzLRsUr+1xKJQrvv4rC3ON/AHTGvtVP2+tj5ys5Lk6zkBL9MEZcBAb rYKmg8fl2bywNHTtQRUoKAN5kFXtsEWjbDGPOqQzqSb8rdHX8t9BkU6lluMQsUVqttmKJ84njJlKR C19JviEQ==; Received: from [10.9.9.72] (helo=submission01.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1r4lw4-0006FD-2A for kawa@sourceware.org; Sun, 19 Nov 2023 18:50:20 +0100 Received: by submission01.runbox with esmtpsa [Authenticated ID (524175)] (TLS1.2:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) id 1r4lw0-00GiG7-5p for kawa@sourceware.org; Sun, 19 Nov 2023 18:50:16 +0100 Message-ID: Date: Sun, 19 Nov 2023 09:50:07 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: n arity with method Content-Language: en-US To: kawa@sourceware.org References: From: Per Bothner In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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/