Line reduction - /direct ?
[1/2] from: arolls:bigpond:au at: 6-Jul-2001 4:44
Try adding direct refinement:
read/direct/lines to-file input_file
> input_file: ask "Enter the source file name: "
> output_file: ask "Enter the output file name: "
<<quoted lines omitted: 8>>
> ]
> write/lines to-file output_file datafile
Does it speed up?
[2/2] from: jelinem1::nationwide::com at: 5-Jul-2001 14:30
I have done some simple processing of large files (several megs) and I can
say that using /direct has a huge impact on performance, not only speed of
execution but also of memory consumption. Reading an entire file into
memory (esp as lines) costs alot.
- Michael
From: "Anton" <[arolls--bigpond--net--au]>@rebol.com on 07/05/2001 01:44 PM
Please respond to [rebol-list--rebol--com]
Sent by: [rebol-bounce--rebol--com]
To: <[rebol-list--rebol--com]>
cc:
Subject: [REBOL] Re: Line reduction - /direct ?
Try adding direct refinement:
read/direct/lines to-file input_file
> input_file: ask "Enter the source file name: "
> output_file: ask "Enter the output file name: "
<<quoted lines omitted: 8>>
> ]
> write/lines to-file output_file datafile
Does it speed up?
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted