Bonkers
Nigel Rantor
wiggly at wiggly.org
Fri May 11 14:04:45 BST 2007
Jon Nangle wrote:
> On Fri, May 11, 2007 at 11:49:38AM +0100, Nigel Rantor wrote:
>
>> example, why passing a char* rather than a char[1024] is likely to be
>> more efficient.
>
> How do you pass a char[1024] in C? Surely arrays will always decay into
> pointers anyway.
Err, by value?
It was an example, perhaps I should have used C++ where you might want
to pass large objects by value until you realise that they're huge and
copying them onto the stack is a performance hit.
n
More information about the london.pm
mailing list