Performance of functions
[1/5] from: ptretter::norcom2000::com at: 28-Feb-2000 13:43
Anyone know the limits of read/binary and write/binary? I also, need to know the speed at which it imports and commits binary read and writes for example: data: read/binary %somedata.exe write/binary %myfile.exe data More specifically on the performance I'm looking for how many megabytes/sec it can write or read and also on the limit I'm looking for the largest file size in Megabytes they can handle. This will impact some scripting I want to do but dont want to jump into it if it looks like the performance isnt there. Alternatively. Is it fast to read from a port to a file or is there other way to read/write data this is faster in REBOL than read/binary or write/binary. Thanks for any help you can provide. Paul Tretter
[2/5] from: arolls::bigpond::net::au at: 1-Mar-2001 14:38
> Anyone know the limits of read/binary and write/binary? I also, > need to know the speed at which it imports and commits binary
<<quoted lines omitted: 4>>> megabytes/sec it can write or read and also on the limit I'm > looking for the largest file size in Megabytes they can handle.
Speed: You would have to test on your system. Size: If you use the /direct refinement, you can read and write a file of any size. You provide the buffer with a size you like, and read/write chunks of this size. Anton.
[3/5] from: ptretter:norcom2000 at: 28-Feb-2001 22:22
As for specifying the size for example: a: make block! 10000 What exactly is the 10000? Is that the number of series items I am reserving or some form of RAM amount. I guess what your also saying is that there is no limit to file sizes with read or write functions. Paul Tretter
[4/5] from: arolls:bigpond:au at: 1-Mar-2001 16:20
It's RAM, I am pretty sure. Just how much, I don't know. It's enough memory to store 10000 series values, I suppose. To find out, you could write a little view script with a button that does [a: make block! 10000] and check your system memory before and after. Anton.
[5/5] from: andrew:wxc at: 1-Mar-2001 20:47
> As for specifying the size for example: > > a: make block! 10000 > > What exactly is the 10000? Is that the number of series items I am
reserving... The 10000 is the number of initial value "spaces" in the block refered to by the word 'a.
> ...or some form of RAM amount.
10000 * the number of bytes per Rebol value is the number of bytes reserved. Andrew Martin ICQ: 26227169 http://members.nbci.com/AndrewMartin/
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted