Method and device for optimizing running speed of applet

The invention provides an applet running speed optimization method and device, and relates to the technical field of computers. The specific implementation scheme is as follows: in response to a starting instruction of a target applet, modifying a default thread priority parameter of a logic thread...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
1. Verfasser: CHEN RONGHANG
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention provides an applet running speed optimization method and device, and relates to the technical field of computers. The specific implementation scheme is as follows: in response to a starting instruction of a target applet, modifying a default thread priority parameter of a logic thread created for the target applet into an instant response priority; in response to the logical thread being launched, the target applet is run. The priority of the logic thread of the target applet can be improved, namely the priority of the resource allocated to the target applet by the system is improved, so that the opening speed and the running speed of the target applet are improved. And a developer is not perceived, and code adaptation does not need to be performed by the developer, so that the problem of performance degradation possibly caused by code adaptation of the developer does not occur. 本公开提供了一种小程序运行速度优化方法及装置,涉及计算机技术领域。具体实现方案为:响应于目标小程序的启动指令,将针对所述目标小程序创建的逻辑线程的默认的线程优先级参数修改为即时响应优先级;响应于逻辑线程被启动,运行目标小程序。能够提高目