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 <[email protected]>
To: FPC-Pascal users discussions <[email protected]>
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 <[email protected]> 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  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal



      
_______________________________________________
fpc-pascal maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to