GCD和for循环 [英] GCD and for loops

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

问题描述

我想知道使用for循环和使用GCD的 dispatch_apply 函数有什么区别,在文档中也没有找到答案, 。

另外,在运行时将使用GCD函数作为GLKit的render / update方法会产生更好的结果吗?

$ b $ b

回答这个问题的唯一方法就是尝试一下并衡量性能。

I was wondering what is the difference between using a for loop, and using the dispatch_apply function of GCD and couldn't find an answer in the documentation nor in questions here.

Also, will using the GCD function in a runtime situation as a GLKit render/update method will produce better results?

解决方案

Also, will using the GCD function in a runtime situation as a GLKit render/update method will produce better results?

The only way to answer that question is to try it and measure the performance.

这篇关于GCD和for循环的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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