Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"BTW, does Jesus know you flame?" -- Diane Holt, dianeh@binky.UUCP, to Ed Carp


devel / comp.lang.lisp / Re: Simple arithmetic consumes tons of CPU and memory in SBCL

SubjectAuthor
o Re: Simple arithmetic consumes tons of CPU and memory in SBCLsteve

1
Re: Simple arithmetic consumes tons of CPU and memory in SBCL

<845yxgl9ed.fsf@gmail.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=16638&group=comp.lang.lisp#16638

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!aioe.org!feeder1.feed.usenet.farm!feed.usenet.farm!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!tr2.eu1.usenetexpress.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 11 Jul 2021 18:26:34 -0500
From: sgonedes1977@gmail.com (steve)
Newsgroups: comp.lang.lisp
Subject: Re: Simple arithmetic consumes tons of CPU and memory in SBCL
References: <rr8q69$9iq$1@dont-email.me>
Date: Sun, 11 Jul 2021 19:26:34 -0400
Message-ID: <845yxgl9ed.fsf@gmail.com>
Organization: Loft - a Gnu/Linux system
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:BT28xVFrZagJg9Q26FhcoViLgYQ=
MIME-Version: 1.0
Content-Type: text/plain
Lines: 17
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-RboR0I8IpUNolRGXOHOZ7FdS3xwILdfJ8newcWdHx+4gDDoxpf5yQ28JF6KAkOHNjkP13DsRd5kcZ3R!yiXBZXi3I2ZDXTq9b8prglexWasBN+W9OWWuzjYHlHkzsZ75bg==
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 1674
 by: steve - Sun, 11 Jul 2021 23:26 UTC

Andrew Sengul <ml@scenariotech.invalid> writes:

> Hi everyone, I've found something strange while profiling a function in
> SBCL. Said function runs a (dotimes) loop and copies elements from one
> array to another. Here is the first loop and its (time) profile:

the math you are using conses - that is to say it uses memory. You are
calling setf many many times, it is usually better to reduce the number
of function calls.

I usually use something like so...

(fill buffer 0 :start 1 :end +max-number-count+)

so such. replace or map-into...

compile the function and (disassemble 'function)


devel / comp.lang.lisp / Re: Simple arithmetic consumes tons of CPU and memory in SBCL

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor