Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
721 views
in Technique[技术] by (71.8m points)

ios - Swift extension

Swift is growing very fast now a days as it has so many cool features for developers. one of the biggest cool feature is extension.

  1. so adding a so many extension in the project cause any issue of slow compiling?
  2. does it affect the application overall performance ?
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

so adding a so many extension in the project cause any issue of slow compiling?

Only to the extent that your adding more source code to the project.

does it affect the application overall performance ?

No it does not effect the overall performance of the app as an extension is resolved at compile time, not runtime.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...