[fpc-pascal] Question about Deleting elements in Dynamic Array

Bihar Anwar bihar_anwar at rocketmail.com
Wed Apr 28 05:24:32 CEST 2010


Ok, I'll try to observe the compiled code using debugger and benchmark it if needed. BTW, what do you mean by allocating memory directly? Is there another way to allocate memory for dynamic array besides using SetLength()?



----- Original Message ----
From: Henry Vermaak <henry.vermaak at gmail.com>
To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
Sent: Wed, April 28, 2010 4:12:26 AM
Subject: Re: [fpc-pascal] Question about Deleting elements in Dynamic Array

On 27 April 2010 18:34, Bihar Anwar <bihar_anwar at rocketmail.com> wrote:
>
> Would Move() be faster, instead of Copy()?

I guess so, have you tried to benchmark?  If you really need speed,
why don't you allocate the memory directly?

Henry
_______________________________________________
fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal



      



More information about the fpc-pascal mailing list