• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Tencent/Hardcoder: Hardcoder is a solution which allows Android APP and Android ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

Tencent/Hardcoder

开源软件地址(OpenSource Url):

https://github.com/Tencent/Hardcoder

开源编程语言(OpenSource Language):

C++ 85.9%

开源软件介绍(OpenSource Introduction):

Hardcoder

licensePRs Welcome

中文版请见这里

Hardcoder is a solution which allows Android APP and Android System to communicate with each other directly, solving the problem that Android APP could only use system standard API rather than the hardware resources of the system. Through Hardcoder, Android APP can make good use of mobile phones hardware resources such as CPU frequency, Large Core, and the GPU to improve APP performance. Hardcoder allows Android system to get more information from APP in order to better provide system resources to Android APP. At the same time, for lack of implementation by the standard interface, the APP and the system can also realize the model adaptation and function expansion through the framework.

Hardcoder framework can averagely optimize the performance of Wechat by 10%-30% in terms of Wechat startup, video delivery, mini program startup, and other highly-loaded scenes. Furthermore, it could also averagely optimize the performance of Mobile QQ by 10%-50% in terms of mobile QQ startup, chatting Initialization, picture delivery, and other highly-loaded scenes. The framework now has been applied to mobile brands such as OPPO, vivo, Huawei, XIAOMI, Samsung, Meizu, etc and covers more than 460 millions devices.

readme

Getting started

  1. Read “Product introduction of Hardcoder” to learn about Hardcoder.

  2. Read “Technical introduction of Hardcoder” to know the implementation philosophy and technical framework.

  3. Use the testapp to quickly verify the performance of Hardcoder. For the further detail, please check ”Hardcoder testapp testing instruction“ and “Hardcoder Benchmark”.

  4. Please check the “Hardcoder Application Instruction” to learn how to use Hardcoder.

    1. Download Hardcoder repo and compline Hardcoder aar.
    2. Apply Hardcoder aar to “build.gradle”.
    3. Call initHardCoder to establish socket connection when process initializes (Generally, it needs to request resource when process initializes. That is the reason why to call initHardCoder when process initializes). Every process is individual and they all need to call initHardCoder to establish socket connection. Every process keeps a socket after the connection and the socket will disconnect if the process quits.
    4. Call checkPermission after the success of InitHardCoder call-back and transfer authentication values which are applied from different mobile brands by APP.
    5. Call startPerformance under the condition of resource request scenes and transfer parameters that request resource. If the scene is in the stage of process initiation, for example APP startup, startPerformance should not be called until it successfully calls back initHardCoder or it needs to verify whether socket is connected by examining isConnect() of HardCoderJNI.
    6. Actively call stopPerformance when scene stops and it needs to transfer the “hashCode" corresponding to the startPerformance in order to identify the corresponding scene. Then it can stop this request.
    7. Test the performance. To do the comparison between the situation in which “Hardcoder is on and off”.
  5. Apply the authentication from mobile brands. For the further detail, please check FAQ.

  6. Launch APP which has involved Hardcoder.

Document Support

  1. Product introduction of Hardcoder——https://github.com/Tencent/Hardcoder/wiki/Hardcoder-产品方案介绍
  2. Technical introduction of Hardcoder——https://github.com/Tencent/Hardcoder/wiki/Hardcoder-技术方案介绍
  3. Hardcoder testapp testing instruction——https://github.com/Tencent/Hardcoder/wiki/Hardcoder-Testapp测试指南
  4. Hardcoder Application Instruction——https://github.com/Tencent/Hardcoder/wiki/Hardcoder-接入指南
  5. FAQ——https://github.com/Tencent/Hardcoder/wiki/FAQ
  6. Hardcoder for Android API References——https://tencent.github.io/Hardcoder/
  7. Hardcoder Benchmark——https://github.com/Tencent/Hardcoder/wiki/Hardcoder-Benchmark

License

Hardcoder is under the BSD license. See the LICENSE file for details.

Personal Information Protection Rules

https://support.weixin.qq.com/cgi-bin/mmsupportacctnodeweb-bin/pages/kGLpLlCX1Vkskw7U

If you have any questions,welcome to join QQ group to contact us.

qqgroup_qrcode.png




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Jon-Millent/mi-shop: 发布时间:2022-08-30
下一篇:
Tencent/ncnn: ncnn is a high-performance neural network inference framework opti ...发布时间:2022-08-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap