[ 
https://issues.apache.org/jira/browse/WEEX-648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16674636#comment-16674636
 ] 

ASF GitHub Bot commented on WEEX-648:
-------------------------------------

Darin726 commented on a change in pull request #1647: [WEEX-648][Android]native 
batch for dom operations generating from JavaScript
URL: https://github.com/apache/incubator-weex/pull/1647#discussion_r230629071
 
 

 ##########
 File path: android/sdk/src/main/java/com/taobao/weex/ui/module/WXDomModule.java
 ##########
 @@ -118,6 +123,16 @@ public Object callDomMethod(String method, JSONArray 
args, long... parseNanos) {
           }
           new UpdateComponentDataAction(mWXSDKInstance, args.getString(0), 
JSONUtils.toJSON(args.get(1)), args.getString(2)).executeAction();
           break;
+        case BATCH_BEGIN: {
+          String ref = args.size() >= 1 ? args.getString(0) : null;
 
 Review comment:
   args may equals null 

----------------------------------------------------------------
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:
us...@infra.apache.org


> 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: acton393
>            Assignee: acton393
>            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)

Reply via email to