[
https://issues.apache.org/jira/browse/WEEX-648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16667217#comment-16667217
]
ASF GitHub Bot commented on WEEX-648:
-------------------------------------
wqyfavor commented on a change in pull request #1644: [WEEX-648][iOS]native
batch for dom operations generating from JavaScript
URL: https://github.com/apache/incubator-weex/pull/1644#discussion_r228928742
##########
File path: ios/sdk/WeexSDK/Sources/Manager/WXComponentManager.mm
##########
@@ -991,8 +991,38 @@ - (void) _printFlexComponentFrame:(WXComponent *)component
- (void)_syncUITasks
{
- NSArray<dispatch_block_t> *blocks = _uiTaskQueue;
- _uiTaskQueue = [NSMutableArray array];
+ static NSInteger _syncUITaskCount = 0;
Review comment:
_syncUITaskCount不能声明为static,不同的instance有不同的componentManager不能共用一个变量。
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> introduce native batch for dom operations generating from javaScript
> --------------------------------------------------------------------
>
> Key: WEEX-648
> URL: https://issues.apache.org/jira/browse/WEEX-648
> Project: Weex
> Issue Type: Improvement
> Components: Android, iOS
> Reporter: xingZhang
> Assignee: xingZhang
> Priority: Major
>
> We will introduce native batch for dom operations generating from javaScript
> wrap a series of dom operations with beginBatch and endBatch directives, when
> every V-sync signal comes, we ensure that the operations between beginBatch
> and endBatch can be performed in current V-sync, this policy can drop frames
> maybe, for our policy dropping frames, we only allow 20 frames at most.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)