Is NSMutableArray slow?
Is NSMutableArray slow?
- Subject: Is NSMutableArray slow?
- From: Chaz McGarvey <email@hidden>
- Date: Wed, 1 Oct 2003 15:11:03 -0600
Hello:
If I had an operation that produced a lot of integers (>100000) quickly
and I wanted to have the integers when the operation finished, would
putting each integer into an NSNumber and then putting the NSNumber
onto the end of an NSMutableArray for each integer going to be a
bottleneck?
Would it be faster to just put the integers into a buffer and expand
the buffer as needed with realloc()?
Thanks,
Chaz McGarvey
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.