Re: Simple Array
Re: Simple Array
- Subject: Re: Simple Array
- From: Ondra Cada <email@hidden>
- Date: Thu, 20 Sep 2001 20:13:44 +0200
Nicolai,
>
>>>>> Nicolai (N) wrote at Thu, 20 Sep 2001 19:04:30 +0200:
N> But when I'm using NSArray it might be a bit slower.
N> In my source I will implement it, where I have to
N> access the array maybe 100.000.000 times.
N> So it has to be fast.
Wow. Yeah, for such a heavy load do use plain C array.
N> Am I right? Why shouldn't I use calloc an free?
In normal situations (hundreds, thousands, tens of thousands of accesses)
the less efficiency does not matter, and the much better flexibility of
NSArray pays off.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc