FrTime memory leak?

Aidan Gauland <[email protected]>
Newsgroups gmane.comp.lang.racket.user,gmane.lisp.scheme.plt
Message-ID <[email protected]>
I've started playing around with FrTime, and I've noticed that with even 
just a trivial program with only a handful of events and behaviours 
slowly uses more and more memory.  Within half an hour of leaving my 
program running in the Racket REPL in the background, the (resident) 
memory usage had grown to half a gigabyte.

I'm guessing this is because, under the hood, FrTime is constantly 
adding data for each clock tick, but I'm more concerned with it 
appearing to never release memory.  Does an FrTime program need to do 
some periodic housekeeping that I am neglecting, or is FrTime not really 
ready for prime time?

Regards,
Aidan Gauland


-- 
You received this message because you are subscribed to the Google Groups "Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
For more options, visit https://groups.google.com/d/optout.
garden.rkt (text/plain, 347 B)
#lang frtime

(define humidity (event-receiver))
(define rain-level (event-receiver))
; Rain takes a little while to permeate through the soil.
(define soil-moisture (delay-by (hold rain-level) 500))

(define flower-hydration (+ (/ (hold humidity) 2) soil-moisture))

(send-event humidity 3)
(send-event rain-level 4)
(value-now flower-hydration)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.