Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道使用 for 循环和使用 GCD 的功能有什么区别,并且dispatch_apply在文档和问题中都找不到答案。
dispatch_apply
此外,在运行时情况下使用 GCD 函数作为 GLKit 渲染/更新方法会产生更好的结果吗?
该文件指出:
dispatch_apply() 函数通过类似原语的“for (;;)”循环提供数据级并发:
这意味着 dispatch_apply 调用的代码块不会像 for 那样被顺序调用,而是可以并发执行。
回答这个问题的唯一方法是尝试并衡量性能。
我有一个 aspx 页面,我想在我的应用程序中用作注册人帐户的打印版本。
在该页面中,我有以下代码,基本上包括一个很长的表格,该表格延伸到多个 A4 页面:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PrintAccountDetails.aspx.cs" Inherits="protected