You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@weex.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/11/28 07:11:00 UTC
[jira] [Commented] (WEEX-153) CPU usage optimization for
WXThread.secure() call
[ https://issues.apache.org/jira/browse/WEEX-153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16268262#comment-16268262 ]
ASF GitHub Bot commented on WEEX-153:
-------------------------------------
GitHub user misakuo opened a pull request:
https://github.com/apache/incubator-weex/pull/919
[WEEX-153][android] Wrap anonymous Runnable with WXThread.secure()
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/misakuo/incubator-weex android-bugfix-secure-runnable
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-weex/pull/919.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #919
----
commit fe5e757cf0ebfc30f68cc3722507aa67b83fb893
Author: misakuo <mi...@apache.org>
Date: 2017-11-13T03:37:08Z
* [android] remove override post and postDelayed, wrap anonymous Runnable with WXThread.secure()
----
> CPU usage optimization for WXThread.secure() call
> -------------------------------------------------
>
> Key: WEEX-153
> URL: https://issues.apache.org/jira/browse/WEEX-153
> Project: Weex
> Issue Type: Improvement
> Components: Android
> Reporter: moxun
> Assignee: moxun
>
> Now we use
> runnable.getClass().getCanonicalName()
> to indicate whether the Runnable is a system task. But every method call will cost about 2 ms, we should try to optimize it
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)