Re: Constructing sequences

new topic     » goto parent     » topic index » view thread      » older message » newer message

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 blink 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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu