swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Performance slowdown using alloc?


From: Fabio Mascelloni
Subject: Re: Performance slowdown using alloc?
Date: Sun, 16 Apr 2000 10:45:21 +0200

----- Original Message ----- 
From: "Marcus G. Daniels" <address@hidden>
To: <address@hidden>
Sent: Saturday, April 15, 2000 4:35 AM
Subject: Re: Performance slowdown using alloc?


> You should get the performance back if you use the single computed
> offset instead of the pointer to pointer indirection

Do you mean getting back to

unsigned short *matrix;

, using

matrix=[[self getZone] alloc: matrixDim*matrixDim*sizeof(unsigned short)];

to allocate it and using

int offset=matrixDim*row+col;
matrix[offset];

to access its members?

Fabio.


                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]