On Thu, 28 Jan 2016 20:32:08 -0800 (PST), Scotty C
<costo...@hotmail.com> wrote:

>> (current-memory-use)
>yup, tried that a while back didn't like what i saw. check this out:
>
>> (current-memory-use)
>581753864
>> (current-memory-use)
>586242568
>> (current-memory-use)
>591181736
>> (current-memory-use)
>595527064
>
>does that work for you?

Yes.  You have to remember that evaluating the function and printing
the result takes memory, and memory is reclaimed only by GC.  So
everything you do takes a little bit.

I'm not aware of any other way.  There is (dump-memory-stats) but it
is undocumented.  [another oppotunity to go spelunking in the code]

But you should be interested in comparing the magnitude of one
implementation vs another ... you're looking to save megabytes, not a
few kilobytes.

George

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to