Re: Program overheads
- Posted by Robert Craig <rds at RapidEuphoria.com> Nov 05, 2005
- 414 views
Chris Burch wrote: > Not sure if this is a really stupid question, but are there any limits on an > eu program, in terms of number of variables / size of variables / number of > functions / procedures etc? > > For instance, I'm writing a program at the moment, which is growing and > growing, > and I keep having to add more and more functions / procedures/ variables etc. > The interpreter has to keep track of all of these, so is there a limit to what > it can handle. > > There does seem to be a limit to the size of an individual sequence (from what > I can tell true plus virtual memory availability). > > If there are limits, is there any way we can test and warn for approach to the > limits? For most things, such as the number and size of variables and routines, there is no hard-coded limit. You will just run out of memory at some point. Judith's IDE is well over 100,000 lines of code, and I don't hear complaints about it running out of memory. 2.4 and earlier had a limit on the length of one line of source (200 characters) but that limit was removed in 2.5, when the front-end was rewritten in Euphoria instead of C. There's also a limit on the number of simultaneously open files (20 or so), but without that limit you'd quickly run into the operating system limit. I can't think of any other significant limits off the top of my head. I don't know of anyone who is being severely constrained by running into a limit. I suppose there are a few other limits, but they are insanely high. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com