Re: [fpc-pascal] File handling: the TFileStream or the classical way is faster and more efficient?

2015-05-27 Thread Jürgen Hestermann
Am 2015-05-27 um 09:38 schrieb Michael Schnell: On 05/26/2015 06:25 PM, Jürgen Hestermann wrote: If you copy thousands of files with only a few bytes each then it may become very noticable, what else is done (in additon to the pure OS copy of the files). I don't think so. Opening the file

Re: [fpc-pascal] File handling: the TFileStream or the classical way is faster and more efficient?

2015-05-27 Thread Michael Schnell
On 05/26/2015 06:25 PM, Jürgen Hestermann wrote: If you copy thousands of files with only a few bytes each then it may become very noticable, what else is done (in additon to the pure OS copy of the files). I don't think so. Opening the file is a tedious task for the OS. So I suppose the

Re: [fpc-pascal] File handling: the TFileStream or the classical way is faster and more efficient?

2015-05-26 Thread Michael Schnell
On 05/25/2015 06:42 AM, Géza Kovacs Géza wrote: Hi All! What is the faster and more efficient, using the TFileStream or the classical way (file of byte, or file) type with blockread/blockwrite and the other well-know procedures? What is the better, faster on large files? As the work that needs

Re: [fpc-pascal] File handling: the TFileStream or the classical way is faster and more efficient?

2015-05-26 Thread Jürgen Hestermann
Am 2015-05-26 um 10:27 schrieb Michael Schnell: As the work that needs to be done by the OS is a lot more than what is done by the fpc library, I suppose that there is no noticeable difference. I think that depends on the size of the file(s). If you copy thousands of files with only a few

Re: [fpc-pascal] File handling: the TFileStream or the classical way is faster and more efficient?

2015-05-25 Thread Géza Kovacs Géza
Hi! Thx your answer. Can I use the AssignFile procedure from the SysUtils unit instead of the simple assign procedure from the System unit? What is the problem with the simple assign? I read from the Free Pascal Wiki: AssignFile (prevent the use of the older Assign procedure) - Assign a name

Re: [fpc-pascal] File handling: the TFileStream or the classical way is faster and more efficient?

2015-05-25 Thread Michael Van Canneyt
On Mon, 25 May 2015, Géza Kovacs Géza wrote: Hi All! What is the faster and more efficient, using the TFileStream or the classical way (file of byte, or file) type with blockread/blockwrite and the other well-know procedures? What is the better, faster on large files? TFileStream offers

Re: [fpc-pascal] File handling: the TFileStream or the classical way is faster and more efficient?

2015-05-25 Thread Michael Van Canneyt
On Mon, 25 May 2015, Géza Kovacs Géza wrote: Hi! Thx your answer. Can I use the AssignFile procedure from the SysUtils unit instead of the simple assign procedure from the System unit? What is the problem with the simple assign? I read from the Free Pascal Wiki: AssignFile (prevent the