Re: Constructing sequences
- Posted by Michael Raley <thinkways at yahoo.com> Jun 30, 2005
- 595 views
Haflidi Asgrimsson wrote: > > This is similar to I problem I had. It seems best to avoid using some kinds > of very large data structures in memory and use clever file manipulation or > the fast Euphoria Database System. > Try running the code below, incrementing MEMORY constant: 1000, 10000, 100000. > You can also have Task Manager open and watch Mem Usage. > Here is what I got, notice that the parsing functions do not return the same > (By the way has anyone a simple trick to get rid of the return at the > end og fthe string and the last comma): > I remember that Kat added a keep parameter into string-tok , which needs to be specified in the call. that's why the output is different. since Kparse builds a flat bookmark list of delimiter positions before it generates the actual list, it would be easy to read the length of the bookmark list and preallocate the parsed output list. there's still the overhead of appending to the bookmark list itself. --"ask about our layaway plan". --