IP Library Granted Patent US 9,256,421
Granted Patent B2
US 9,256,421 · App. 14/168,268 · Granted Feb 9, 2016

Method, device and terminal for improving running speed of application

Inventors: Daozheng Lin (Shenzhen Guangdong, CN); Kefeng Nie (Shenzhen Guangdong, CN); Bin Fang (Shenzhen Guangdong, CN); Shiping Li (Shenzhen Guangdong, CN)
Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
G06F8/67G06F8/4441G06F9/445
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,256,421
App. No.
14/168,268
Granted
Feb 9, 2016
Kind
B2
Abstract

The disclosure provides a method, a device and a terminal for improving the speed of an application relating to the computer field. The method may include collecting local data information corresponding to a missing-page interruption during execution of the application. The local data information may include a name of a file in which the local data is contained, an offset in the file and the size of the local data. The method may further include acquiring the local data corresponding to the local data information in response to receiving an instruction to improve the running speed of the application and loading the acquired local data. This may reduce the time spent by the application on accessing I/O operations. Thus, the running speed of the application may be improved by loading the acquired local data according to the local data information corresponding to the missing-page interruption while the application is running.

Claims (51)

1. A method for improving running speed of an application, comprising:

running an application stored in a terminal;

collecting local data information corresponding to a missing-page interruption of running the application, wherein the local data information comprises a name of a file in which local data is contained, an offset of the local data in the file and a size of the local data; and

acquiring the local data according to the local data information, and loading the local data after an instruction to improve the running speed of the application is acquired;

wherein the acquiring the local data according to the local data information comprises:

parsing the local data information to obtain the name of the file in which the local data is contained, the offset of the local data in the file and the size of the local data;

aggregating the local data information according to the name of the file in which the local data is contained;

merging the aggregated local data information if a distance between offsets of the local data information is within a preset range, and selecting local data information meeting a prefetch condition from the merged local data information as prefetch data information; and

acquiring the local data according to the selected prefetch data information.

2. The method according to claim 1 , wherein the collecting local data information corresponding to a missing-page interruption of running the application comprises:

collecting a hard missing-page event and a soft missing-page event while the application is running by an event tracing mechanism, and acquiring local data information corresponding to a missing-page interruption while the application is running from an event tracing log recording the hard missing-page event and the soft missing-page event;

or, monitoring system underlying call by a HOOK technology, acquiring a monitoring code for recording local data information corresponding to a missing-page interruption, and acquiring, according to the monitoring code, the local data information corresponding to the missing-page interruption while the application is running.

3. The method according to claim 1 , wherein after the selecting local data information meeting a prefetch condition from the merged local data information as prefetch data information, the method further comprises:

storing the selected prefetch data information according to information of the application; and

the loading the acquired local data comprises:

acquiring the prefetch data information according to the information of the application, acquiring the local data according to the prefetch data information, and loading the acquired local data into a memory.

4. The method according to claim 1 , wherein before the loading the acquired local data, the method further comprises:

outputting an application list, and prompting a user to select an application for which running speed is to be improved from the application list; and

receiving, according to the application selected by the user from the application list, an instruction to improve the running speed of the application and the information of the application.

5. A terminal, comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are performed by the one or more processors, and the one or more programs comprise an instruction to perform the following operations:

collecting local data information corresponding to a missing-page interruption of running an application, wherein the local data information comprises a name of a file in which local data is contained, an offset of the local data in the file and a size of the local data;

parsing the local data information to obtain the name of the file in which the local data is contained, the offset of the local data in the file and the size of the local data;

aggregating the local data information according to the name of the file in which the local data is contained;

merging the aggregated local data information if a distance between offsets of the local data information is within a preset range, and selecting local data information meeting a prefetch condition from the merged local data information as prefetch data information; and

acquiring corresponding local data according to the local data information, and loading the local data after an instruction to improve the running speed of the application is acquired.

6. The terminal according to claim 5 , wherein the one or more programs comprise instructions to perform the following operations:

collecting a hard missing-page event and a soft missing-page event while an application is running by an event tracing mechanism, and acquiring local data information corresponding to a missing-page interruption while the application is running from an event tracing log recording the hard missing-page event and the soft missing-page event;

or, monitoring system underlying call by a HOOK technology, acquiring a monitoring code for recording local data information corresponding to a missing-page interruption, and acquiring, according to the monitoring code, the local data information corresponding to the missing-page interruption while an application is running.

7. The terminal according to claim 5 , wherein the one or more programs comprise instructions to perform the following operations:

storing the selected prefetch data information according to information of the application; and

the loading the acquired local data comprises:

acquiring the prefetch data information according to the information of the application, acquiring corresponding local data according to the prefetch data information, and loading the acquired local data into a memory.

8. The terminal according to claim 5 , wherein the one or more programs comprise instructions to perform the following operations:

outputting an application list, and prompting a user to select an application for which running speed is to be improved from the application list; and

receiving, according to the application selected by the user from the application list, an instruction to improve the running speed of the application and the information of the application.

9. A non-transitory computer readable storage medium, wherein the computer readable storage medium stores one or more programs, the one or more programs are executed by one or more processors to perform a slide control method, and the slide control method comprises:

collecting local data information corresponding to a missing-page interruption of running an application, wherein the local data information comprises a name of a file in which local data is contained, an offset of the local data in the file and a size of the local data;

parsing the local data information to obtain the name of the file in which the local data is contained, the offset of the local data in the file and the size of the local data;

aggregating the local data information according to the name of the file in which the local data is contained;

merging the aggregated local data information if a distance between offsets of the local data information is within a preset range, and selecting local data information meeting a prefetch condition from the merged local data information as prefetch data information; and

acquiring corresponding local data according to the local data information, and loading the acquired local data after an instruction to improve the running speed of the application is acquired.

10. The computer readable storage medium according to claim 9 , wherein the collecting local data information corresponding to a missing-page interruption while an application is running comprises:

collecting a hard missing-page event and a soft missing-page event while an application is running by an event tracing mechanism, and acquiring local data information corresponding to a missing-page interruption while the application is running from an event tracing log recording the hard missing-page event and the soft missing-page event;

or, monitoring system underlying call by a HOOK technology, acquiring a monitoring code for recording local data information corresponding to a missing-page interruption, and acquiring, according to the monitoring code, the local data information corresponding to the missing-page interruption while an application is running.

11. The computer readable storage medium according to claim 9 , wherein after the selecting local data information meeting a prefetch condition from the merged local data information as prefetch data information, the method further comprises:

storing the selected prefetch data information according to information of the application; and

the loading the acquired local data comprises:

acquiring the prefetch data information according to the information of the application, acquiring corresponding local data according to the prefetch data information, and loading the acquired local data into a memory.

12. The computer readable storage medium according to claim 9 , wherein before the loading the acquired local data, the method further comprises:

outputting an application list, and prompting a user to select an application for which running speed is to be improved from the application list; and

receiving, according to the application selected by the user from the application list, an instruction to improve the running speed of the application and the information of the application.

Assignments (2)
CORRECTIVE ASSIGNMENT TO CORRECT THE ASSIGNEE NAME PREVIOUSLY RECORDED AT REEL: 032092 FRAME: 0667. ASSIGNOR(S) HEREBY CONFIRMS THE ASSIGNMENT. Recorded Dec 14, 2015
From: LIN, DAOZHENG; NIE, KEFENG; FANG, BIN; LI, SHIPING
To: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Reel/Frame 037288/0903 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 30, 2014
From: LIN, DAOZHENG; NIE, KEFENG; FANG, BIN; LI, SHIPING
To: TENCENT TECHNOLOGY (SHENZEN) COMPANY LIMITED
Reel/Frame 032092/0667 →
Priority Claims (1)
CN 2012 1 0106766 · Apr 12, 2012 · national
Continuity (2)
Continuation PCTCN2013072466 · Mar 12, 2013
Related Publication 20140149972A1 · May 29, 2014