YorkShen commented on a change in pull request #1511: [WEEX-611][Android] Fix java.lang.ArrayIndexOutOfBoundsException URL: https://github.com/apache/incubator-weex/pull/1511#discussion_r216893838
########## File path: android/sdk/src/main/java/com/taobao/weex/utils/batch/BatchOperationHelper.java ########## @@ -31,7 +32,7 @@ private BactchExecutor mExecutor; - private ArrayList<Runnable> sRegisterTasks = new ArrayList<>(); + private CopyOnWriteArrayList<Runnable> sRegisterTasks = new CopyOnWriteArrayList<>(); Review comment: `CopyOnWriteArrayList` is bad for performance in high frequency invoke situation. Be careful ---------------------------------------------------------------- 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] With regards, Apache Git Services
