Re: Constructing sequences
- Posted by Derek Parnell <ddparnell at bigpond.com> Jun 28, 2005
- 602 views
Mario Steele wrote: > > Allright, > > Considering someone posted something about file i/o (Including Kat), about > this, and > the overwhelming evidence that pre-allocation is best way to go, here should > be an > extreamly fast version of loading a file into Memory (AKA Sequence): It seems that a lot of people have missed the original poster's point. Or maybe its just me But the way I read it is that they were trying to load each LINE of a text file into its own sub-sequence, rather than load the entire file into one single sequence. Thus a file with twenty lines would create twenty sub-sequences. Rob Craig's code is about the best so far for doing that, though I'm sure it could still be tweaked a bit more. -- Derek Parnell Melbourne, Australia irc://irc.sorcery.net:9000/euphoria