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);
47804845
ap^:=1; inc(ap);
37033703
On 4 apr 2006, at 16:28, Jonas Maebe wrote:
No, that is not true. He's now using plain pointers. The compiler
does not keep track of the fact that a particular pointer points to
a reference-counted type. Both loops are now equally fast in
principle (and they are in practice on e.g. ppc).
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);
47804845
ap^:=1; inc(ap);
37033703
ap^:=a[0] xor ap^; inc(ap);
3813420
On Tue, 4 Apr 2006, ??? wrote:
If you really want to speed up both cases you need to use pointers and
increase the pointer value in each iteration. This saves the indexing in
every iteration.
Thank you, that was informative. Here are the results (one program at the end
for comp
> If you really want to speed up both cases you need to use pointers and
> increase the pointer value in each iteration. This saves the indexing in
> every iteration.
Thank you, that was informative. Here are the results (one program at the end
for completeness):
ap^:=app^; inc(ap); d
On 4 apr 2006, at 13:46, Пётр Косаревский wrote:
No, it's a very common cases on all cpus which have a reasonable
amount of available registers.
With 3-4 dynamical arrays and several parameters?
It all depends on how many parameters, how many other variables and
how they are used. But a PP
>> No, it's a very common cases on all cpus which have a reasonable
>> amount of available registers.
> With 3-4 dynamical arrays and several parameters?
>
>> > What can I do to speed up dynamical arrays?
>> >
>> > What can I do to speed up static arrays?
> I mean: what is the shortest way to estim
> No, it's a very common cases on all cpus which have a reasonable
> amount of available registers.
With 3-4 dynamical arrays and several parameters?
> > What can I do to speed up dynamical arrays?
> >
> > What can I do to speed up static arrays?
I mean: what is the shortest way to estimate spee