in reply to eval + no warnings = no memory
Temporary "scratchpad" variables are not free()d until (roughly) the end of the statement. This statement never ends so each eval allocates a bit of temporary space and these never get free()d.
You can test this by making the loop only repeat a few hundred times and then put that in a bigger loop and see the memory grow initially but then level out as the hundreds of temporaries get free()d each time around the bigger loop.
But I haven't tested this theory, it just seems pretty danged likely. (:
- tye (but my friends call me "Tye")
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (tye)Re: eval + no warnings = no memory
by gryng (Hermit) on Jan 30, 2001 at 09:48 UTC | |
by tye (Sage) on Jan 30, 2001 at 12:04 UTC | |
by gryng (Hermit) on Jan 30, 2001 at 23:56 UTC | |
by tye (Sage) on Jan 31, 2001 at 02:40 UTC |