Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion Very poor Lisp performance

View Parsed - Show only message text

Path: g2news1.google.com!news4.google.com!news.glorb.com!newscon02.news.prodigy.com!prodigy.net!newsmst01b.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr23.news.prodigy.net.POSTED!bdf4e901!not-for-mail
From: Richard Fateman <fate...@cs.berkeley.edu>
Organization: University of California, Berkeley
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: comp.lang.lisp
Subject: Re: Very poor Lisp performance
References: <42fd4459$0$97104$ed2619ec@ptn-nntp-reader03.plus.net> <HvSdnayKD_1M8mDfRVn-ow@speakeasy.net> <42fdd7a8$0$97130$ed2619ec@ptn-nntp-reader03.plus.net>
In-Reply-To: <42fdd7a8$0$97130$ed2619ec@ptn-nntp-reader03.plus.net>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 32
Message-ID: <iBoLe.4909$O07.3677@newssvr23.news.prodigy.net>
NNTP-Posting-Host: 63.202.82.207
X-Complaints-To: abuse@prodigy.net
X-Trace: newssvr23.news.prodigy.net 1123947982 ST000 63.202.82.207 (Sat, 13 Aug 2005 11:46:22 EDT)
NNTP-Posting-Date: Sat, 13 Aug 2005 11:46:22 EDT
X-UserInfo1: [[PGGW_ETBSYRPLY@BCBNWX@RJ_XPDLMN@GZ_GYO^BVNDQUBLNTC@AWZWDXZXQ[K\FFSKCVM@F_N_DOBWVWG__LG@VVOIPLIGX\\BU_B@\P\PFX\B[APHTWAHDCKJF^NHD[YJAZMCY_CWG[SX\Y]^KC\HSZRWSWKGAY_PC[BQ[BXAS\F\\@DMTLFZFUE@\VL
Date: Sat, 13 Aug 2005 15:46:22 GMT

Time for running in Allegro CL 7.0 on a 933 MHz Pentium II.
as given:

; cpu time (non-gc) 60,202 msec (00:01:00.202) user, 421 msec system
; cpu time (gc)     33,623 msec user, 10 msec system
; cpu time (total)  93,825 msec (00:01:33.825) user, 431 msec system
; real time  105,632 msec (00:01:45.632)
; space allocation:
;  967,240 cons cells, 3,719,472,272 other bytes, 4,472 static bytes


But converting all "single-float"  to double-float:

; cpu time (non-gc) 4,446 msec user, 120 msec system
; cpu time (gc)     2,524 msec user, 0 msec system
; cpu time (total)  6,970 msec user, 120 msec system
; real time  7,961 msec
; space allocation:
;  418,422 cons cells, 292,782,544 other bytes, 0 static bytes
The compiler complained about the "shadow" statement
warning: compile-file found "SHADOW" at the top-level --  see the
          documentation for
          comp:*cltl1-compile-file-toplevel-compatibility-p*

My guess is that much of the verbosity for the sbcl version could be struck
out of the allegro cl version without any loss in speed, and that careful attention
to other potential optimizations/ declarations could squeeze out better performance.

It could be that this single/double issue relates to your AMD64 timings.
Most of it may be converting single to double and back.

RJF

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google