开发者

STL performance in iOS

开发者 https://www.devze.com 2023-03-02 18:17 出处:网络
I really like STL because of its simple syntax and its flexibility. Sometimes usage of开发者_JAVA技巧 STL is a must because Foundation array and dictionary cannot contain non-object. So, what I want t

I really like STL because of its simple syntax and its flexibility. Sometimes usage of开发者_JAVA技巧 STL is a must because Foundation array and dictionary cannot contain non-object. So, what I want to know are:

  • Is there any performance penalty of STL in iOS ?
  • Has anyone compared the performance between STL containers and the corresponding Foundation classes ?

Thanks


STL should work well on iOS, and normally it will be substantially faster than Foundation classes.

0

精彩评论

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