By default, Filter uses temporary files during communication. It creates the temporary file to process, and uses further temporary files to store the filtered data and send it back only when the process is complete.
When running out-of-process, you can configure KeyView to stream the file data while it processes it, rather than creating temporary files, by modifying the formats.ini
file. This method has a number of advantages:
It reduces the disk space used for temporary files
It improves the responsiveness for partial filtering. When using the temp_file
method your first call to fpFilterStream
does not return until the entire file has been processed. When using the pipe
method, fpFilterStream
returns the first block of text as soon as it is available.
It reduces the I/O for partial filtering. When you use the pipe method, it might not be necessary for KeyView to read the whole input file, especially if you choose to stop filtering before all the text has returned.
To run Filter in streaming mode, set the streaming_method
parameter in the [FilterSDK_Config]
section of the formats.ini
file to pipe
.
By default this parameter is set to temp_file
, which uses temporary files during the filter process.
|