> On Sep 12, 2017, at 12:56 PM, Sven Barth via fpc-pascal
> wrote:
>
> The Inc-/DecLocked routines perform a locked increment/decrement, so they're
> blocking the memory bus for all cores (simply spoken), thus leading to a
> higher CPU utilization. On e.g. i386 there is an optimisation to onl
On 11/09/17 19:45, Sven Barth via fpc-pascal wrote:
I've rechecked and the thing is as follows:- the IncLocked call happens each time you assign
a dynamic array toanother dynamic array variable or a by-value parameter (this alsoincludes
being part of a record, but not a class instance or TP-st
Am 12.09.2017 06:54 schrieb "Ryan Joseph" :
>
>
> > On Sep 12, 2017, at 2:35 AM, Sven Barth via fpc-pascal <
fpc-pascal@lists.freepascal.org> wrote:
> >
> > I've rechecked and the thing is as follows:
> > - the IncLocked call happens each time you assign a dynamic array to
> > another dynamic array
> On Sep 12, 2017, at 2:35 AM, Sven Barth via fpc-pascal
> wrote:
>
> I've rechecked and the thing is as follows:
> - the IncLocked call happens each time you assign a dynamic array to
> another dynamic array variable or a by-value parameter (this also
> includes being part of a record, but not
On 11.09.2017 11:46, Ryan Joseph wrote:
>
>> On Sep 11, 2017, at 4:20 PM, Sven Barth via fpc-pascal
>> wrote:
>>
>> They're used for the reference counter of the array (or string or
>> interface). The reference counter changes each time you assign an array or
>> pass it to a by-value parameter
> On Sep 11, 2017, at 4:20 PM, Sven Barth via fpc-pascal
> wrote:
>
> They're used for the reference counter of the array (or string or interface).
> The reference counter changes each time you assign an array or pass it to a
> by-value parameter or if you change a value (cause the compiler/R
Am 11.09.2017 11:14 schrieb "Ryan Joseph" :
>
> I was time profiling some code and saw these 2 functions taking up large
amounts of time. They’re coming from dynamic arrays and SetLength I believe
but I was curious what they are exactly because I don’t believe I’ve seen
them before. Is this normal
I was time profiling some code and saw these 2 functions taking up large
amounts of time. They’re coming from dynamic arrays and SetLength I believe but
I was curious what they are exactly because I don’t believe I’ve seen them
before. Is this normal for resizing dynamic arrays or are they doin