开发者

iOS CF data structures vs NS data structures

I was wondering what are exactly the differences between CF data structures (CFArray, CFDictionary, etc) and NS data structures (NSArray, NSDictionary, etc..). I've been using mostly NS classes, yet I fou开发者_如何学编程nd that CF classes have better performance and have some advantage over NS classes. I would appreciate if someone could explain the pros and cons in depth.


NS (Stands for NextStep) which is fully object oriented Objective-c and CF (Stands for Core Foundation) which are the C based API's. Memory management is different depending on which framework you are using.

As for performance, unless you really are having performance bottlenecks and you realize about memory management with C, I'll go with Objective-C. Now with its garbage collection pain has gone.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜