Re: Recursion question?
- Posted by Dan B Moyer <DANMOYER at PRODIGY.NET> Dec 14, 2000
- 450 views
Tony, If recursion eats up too much memory in your machine, then maybe you could find another way to do what you want other than by recursion? That might take more code in source, but less in execution? Dan Moyer ----- Original Message ----- From: "Tony Bucholtz" <tony_bucholtz at HOTMAIL.COM> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Thursday, December 14, 2000 5:26 AM Subject: Re: Recursion question? > On Thu, 14 Dec 2000 19:38:01 +1100, Graeme <graemeburke at CROSSWINDS.NET> > wrote: > > >> > >>When a recusive function is used in Euphoria, are all the internal > >>variables (including anything passed into the function) put in a stack of > >>some kind? Ferinstance: > > > >Yes. > >Private variables are the property of each instance of > >a function and stay in memory until the termination of > >that instance. (cool huh?;) > > > > G'day all > Thanks, Graeme. Does that mean that a recursive function with *lots* of big > sequences and recursed *lots* of times will eat up heaps of memory? My poor > old P166 16Mb beast goes from slow to s...l...o...w after looping around > one of these things for a while. I guess running out of RAM will do that :) > > Regards > Tony