迅捷扩展 [英] Swift extension

查看:71
本文介绍了迅捷扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如今,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. 因此在项目中添加了如此多的扩展会导致任何缓慢的问题 编译吗?
  2. 这是否会影响应用程序的整体性能?
  1. so adding a so many extension in the project cause any issue of slow compiling?
  2. does it affect the application overall performance ?

推荐答案

是否在项目中添加了如此多的扩展会导致编译缓慢?

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.

这篇关于迅捷扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆