Re: Resources and Euphoria

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

Graeme wondered about my bundling scheme:

>I don't understand why you have to bind it twice.
>Surely you can just append the index info to the file
>in reverse order and just start reading backwards from
>the end ?

It's possible, but files tend to be cached on the assumption that you =
will read in the opposite direction. As a result, I think you would lose =
some efficiency.

But if I built the files as a linked list, in the form:

   <file data><file header> ...

where <file header> contained the file length, you'd also get the =
advantage of being able to simply append the files without having to =
bind twice.

Since the code ultimately refers to files by index and not name, there's =
no need to even keep the file name. So there's no problem with handling =
long file names and such.

Thanks for the suggestion!

-- David Cuny

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

Search



Quick Links

User menu

Not signed in.

Misc Menu