[fpc-pascal] IBConnection blobsegmentsize irrelevant performance

2011-11-19 Thread Reinier Olislagers
Hi list, The Firebird/Interbase ibconnection.pp code has this code in its SetParameters procedure to upload blobs in segments (BlobSegmentSize property is set to 80 on object creation): while BlobBytesWritten (BlobSize-BlobSegmentSize) do begin isc_put_segment(@FStatus[0],

[fpc-pascal] Re: More fun with dynamic arrays

2011-11-19 Thread andrew.bennett
On Fri, 18 Nov 2011 23:11:14 -0800 (PST) leledumbo leledumbo_c...@yahoo.co.id wrote re use of Out parameters ... As stated in the docs (http://www.freepascal.org/docs-html/ref/refsu57.html): The initial value of the parameter on function entry is discarded, and should not be used.

Re: [fpc-pascal] using functions from units main programme

2011-11-19 Thread John Lee
Thanks for the feedback suggestions - looks like either functions as parameters or using objects are only ways to do this - either makes the code look horrible more complex that necessary imo cf the normal use of functions. Surprised this capability hasn't come up before because doesn't sound

Re: [fpc-pascal] using functions from units main programme

2011-11-19 Thread Rich Saunders
On 11/19/11 11:19 AM, John Lee wrote: Surprised this capability hasn't come up before because doesn't sound technically difficult to do. The need for this capability HAS come up before. That's why the methods that are available are available. They may appear to be too complicated but it is

Re: [fpc-pascal] using functions from units main programme

2011-11-19 Thread Bernd
2011/11/19 John Lee johnel...@gmail.com: Surprised this capability hasn't come up before because doesn't sound technically difficult to do. The problem is simply that at the time of compiling the unit all the function calls within it are already statically resolved and everything is cast in

[fpc-pascal] Patch/Test BlobSegmentSize was: IBConnection blobsegmentsize irrelevant performance

2011-11-19 Thread Reinier Olislagers
On 19-11-2011 13:28, Reinier Olislagers wrote: Hi list, The Firebird/Interbase ibconnection.pp code has this code in its SetParameters procedure to upload blobs in segments (BlobSegmentSize property is set to 80 on object creation): while BlobBytesWritten (BlobSize-BlobSegmentSize)

Re: [fpc-pascal] IBConnection blobsegmentsize irrelevant performance

2011-11-19 Thread Michael Van Canneyt
On Sat, 19 Nov 2011, Reinier Olislagers wrote: Hi list, The Firebird/Interbase ibconnection.pp code has this code in its SetParameters procedure to upload blobs in segments (BlobSegmentSize property is set to 80 on object creation): while BlobBytesWritten (BlobSize-BlobSegmentSize) do

Re: [fpc-pascal] Patch/Test BlobSegmentSize was: IBConnection blobsegmentsize irrelevant performance

2011-11-19 Thread Michael Van Canneyt
On Sat, 19 Nov 2011, Reinier Olislagers wrote: On 19-11-2011 13:28, Reinier Olislagers wrote: Hi list, The Firebird/Interbase ibconnection.pp code has this code in its SetParameters procedure to upload blobs in segments (BlobSegmentSize property is set to 80 on object creation): while