From 1ab7ec56ed8a28e5593ce61eda82d854fa9bf530 Mon Sep 17 00:00:00 2001 From: "getsantry[bot]" <66042841+getsantry[bot]@users.noreply.github.com> Date: Fri, 18 Aug 2023 00:32:43 +0000 Subject: [PATCH] style(lint): Auto commit lint changes --- .../issue-details/performance-issues/frame-drop/index.mdx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/docs/product/issues/issue-details/performance-issues/frame-drop/index.mdx b/src/docs/product/issues/issue-details/performance-issues/frame-drop/index.mdx index 506522ccc3e7a..14dd68393662c 100644 --- a/src/docs/product/issues/issue-details/performance-issues/frame-drop/index.mdx +++ b/src/docs/product/issues/issue-details/performance-issues/frame-drop/index.mdx @@ -97,8 +97,4 @@ dispatch_apply(numberOfNumbers, dispatch_get_global_queue(QOS_CLASS_UTILITY, 0), }); ``` -There are several things to Keep in mind when introducing concurrency: - - you may need to `@synchronize` critical sections, use semaphores, or dispatch back to a serial queue (or the main queue for UI work) - - you may not be able to parallelize loops whose iterations are dependent or where order is significant - - parallelization may not be more efficient for small collections, as [thread spawning has its own costs](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/Multithreading/AboutThreads/AboutThreads.html#//apple_ref/doc/uid/10000057i-CH6-SW20); always measure first! - - both `enumerateObjects...` and `dispatch_apply` are synchronous and won't return until all iterations have completed. Dispatch their invocation asynchronously off the main queue to avoid waiting. +There are several things to Keep in mind when introducing concurrency: - you may need to `@synchronize` critical sections, use semaphores, or dispatch back to a serial queue (or the main queue for UI work) - you may not be able to parallelize loops whose iterations are dependent or where order is significant - parallelization may not be more efficient for small collections, as [thread spawning has its own costs](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/Multithreading/AboutThreads/AboutThreads.html#//apple_ref/doc/uid/10000057i-CH6-SW20); always measure first! - both `enumerateObjects...` and `dispatch_apply` are synchronous and won't return until all iterations have completed. Dispatch their invocation asynchronously off the main queue to avoid waiting.