Write File From Cache Really Slow?
Dave Cragg
dcragg at lacscentre.co.uk
Wed Feb 8 04:47:33 EST 2006
On 8 Feb 2006, at 08:47, Ken Ray wrote:
> Hi,
>
> I'm downloading files via HTTP with 'load URL' and then I'm writing
> them to
> disk with "put url... into binfile". Everything works fine, but it
> takes a
> really long time to write the data to disk. For example, if I
> download a
> 12MB file into the cache, it takes well over a minute to write it
> to disk.
That's slow, and sounds suspiciously like the url is being downloaded
a second time. Could you use libUrlSetLogField to see if that might
be happening?
>
> So two questions: (1) is there any other way I can get a 'loaded'
> file to
> disk other than the way I'm doing it, and (2) if not, is there
> anything I
> can do to speed it up?
You could use libUrlDownloadToFile to download directly to a file.
Contrary to what the docs might imply, it can be used with http urls.
Cheers
Dave
More information about the use-livecode
mailing list