[fpc-devel] static vs dynamic arrays
Michael Van Canneyt
michael at freepascal.org
Tue Apr 4 16:41:12 CEST 2006
On Tue, 4 Apr 2006, Jonas Maebe wrote:
> On 4 apr 2006, at 15:01, Michael Van Canneyt wrote:
>>> Thank you, that was informative. Here are the results (one program at the
>>> end for completeness):
>>> ap^:=app^; inc(ap); dec(bp);
>>> 4780 4845
>>> ap^:=1; inc(ap);
>>> 3703 3703
>>> ap^:=a xor ap^; inc(ap);
>>> 3813 4203
>>> Now the question rises again in the original form (not very correct, see
>>> previous messages):
>>> WHY DYNAMICS ARE SLOWER?
>> Because of the copy-on-write mechanism.
> No, that is not true. He's now using plain pointers.
if I read this:
Now the question rises again in the original form (not very correct, see
previous messages): WHY DYNAMICS ARE SLOWER?
Then I understand this question as "about dynamics in the original form",
hence my answer.
More information about the fpc-devel