Re: [Lazarus] Questions about SetLength

2014-09-12 Thread payl
Hi, Maybe it is not a correct list, but I am going to ask my question anyway :) Is there a penalty for calling SetLength if array already has the length we need? Yes, there's always penalty for operations that you don't need. FPC will generate normal call, pass arguments, etc. I checked

Re: [Lazarus] Questions about SetLength

2014-09-12 Thread Mattias Gaertner
On Fri, 12 Sep 2014 19:21:45 +0200 payl p...@wp.pl wrote: [...] Is there a penalty for calling SetLength if array already has the length we need? Yes, there's always penalty for operations that you don't need. FPC will generate normal call, pass arguments, etc. I checked if SetLength