[REBOL] Re: Memory usage
From: Christophe:Coussement:mil:be at: 19-Oct-2005 10:54
> > The Garbage Collector is being called regularly anyway. If you call
> > RECYCLE too often, you are unnecessarily slowing down the
interpreter.
> [[CC]] Indeed, as obviously shown here:
>
> >> rec: does [start: now/time/precise i: 0 loop 1000 [i: i + 1
recycle]
> print now/time/precise - start]
> >> rec
> 0:00:03.525
> >> no-rec: does [start: now/time/precise i: 0 loop 1000 [i: i + 1]
print
> now/time/precise - start]
> >> no-rec
> 0:00
>
[>CC<] Just by curiosity, I tried to estimate the supplementary time
needed by 'recycle call:
>> no-rec: does [start: now/time/precise i: 0 loop 100000 [i: i + 1]
print now/time/precise - start]
>> no-rec
0:00:00.03
>> rec: does [start: now/time/precise i: 0 loop 100000 [i: i + 1
recycle] print now/time/precise - start]
>> rec
0:05:55.507
>> 0:05:55.507 / 0:00:00.03
== 11850 ;times more or...
>> 0:05:55.507 / 100000
== 0:00:00.00355507 ;... per recycle