In Objective-C, importing same headers in every class make compile time longer?

前端 未结 5 531
轻奢々
轻奢々 2021-01-11 17:23

I\'m a beginner of Objective-C/iOS programing.

I want make a one header file which includes all class headers I use in my project.
And import the header in every

5条回答
  •  遥遥无期
    2021-01-11 18:03

    Putting all the headers in one file may improve build performance in certain cases, but you probably won't notice the difference.

    It is better to keep your class headers in different files for purposes of organization. Also, if you are only including the headers that you need in your source files then your build time will be reduced, although again not noticeably if you are using a decent build machine.

提交回复
热议问题