CN103927192A - Method and device for accelerating starting of client and terminal - Google Patents

Method and device for accelerating starting of client and terminal Download PDF

Info

Publication number
CN103927192A
CN103927192A CN201310012669.8A CN201310012669A CN103927192A CN 103927192 A CN103927192 A CN 103927192A CN 201310012669 A CN201310012669 A CN 201310012669A CN 103927192 A CN103927192 A CN 103927192A
Authority
CN
China
Prior art keywords
key assignments
default key
information
reading
value pair
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310012669.8A
Other languages
Chinese (zh)
Inventor
陈国乐
吴洪伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310012669.8A priority Critical patent/CN103927192A/en
Publication of CN103927192A publication Critical patent/CN103927192A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method for accelerating starting of a client. The method includes the steps: reading first information of starting data of the client; reading a stored preset key-value pair comprising a preset key-value and a corresponding preset data block; determining matching of the read first information and the read preset key-value pair, and extracting the preset data block corresponding to the first information to directly execute a starting process of the client. By the method, starting of the client is accelerated. The invention further provides a device for accelerating starting of the client and a terminal.

Description

A kind of method, device and terminal of accelerating client terminal start-up
Technical field
The present invention relates to game technical field, relate in particular to a kind of method, device and terminal of accelerating client terminal start-up.
Background technology
In client terminal start-up login process, file I/O is a key factor that affects client terminal start-up login.The client platform particularly with many plug-in units, as JICQ.At present, conventionally adopt compound document technology to improve the speed of client terminal start-up login.But the quantity of compound document is conditional, if when the quantity of compound document is a lot, can reduce equally the speed of client terminal start-up login.
Summary of the invention
The embodiment of the present invention provides a kind of method, device and terminal of accelerating client terminal start-up, so that the speed of client terminal start-up login to be provided.
First aspect present invention provides a kind of method of accelerating client terminal start-up, comprising:
Read the first information of the log-on data of client;
Read the default key-value pair of storage, wherein said default key-value pair comprises default key assignments and corresponding preset data piece thereof;
Determine that the first information reading mates with the default key-value pair reading, extract the start-up course that the described preset data piece corresponding with the described first information directly carried out client.
Second aspect present invention provides a kind of device that accelerates client terminal start-up, comprising:
Read module, for reading the first information of the log-on data of client, and reads the default key-value pair of storage, and wherein said default key-value pair comprises that the number of default key assignments and correspondence thereof is default according to piece;
Determination module, for determining that the first information reading mates with the default key-value pair reading;
Extraction module, directly carries out the start-up course of client for extracting the described preset data piece corresponding with the described first information.
Third aspect present invention provides a kind of terminal, comprises the device of above-mentioned acceleration client terminal start-up.
Implement the embodiment of the present invention, there is following beneficial effect:
Embodiment of the present invention the present invention is by reading the first information of the log-on data of client; Read the default key-value pair of storage, wherein said default key-value pair comprises default key assignments and corresponding preset data piece thereof; Determine that the first information reading mates with the default key-value pair reading, extract the start-up course that the described preset data piece corresponding with the described first information directly carried out client.The present invention makes client without the startup file visiting again in hard disk, press from both sides to call the log-on data piece in opening file when starting, but the preset data piece that directly extracts the corresponding first information of storage is directly carried out to the start-up course of client.The present invention has realized the object of accelerating client terminal start-up.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
A kind of method flow diagram that accelerates client terminal start-up that Fig. 1 provides for preferred embodiment of the present invention;
Fig. 2 is the process flow diagram of the generation method of the default key-value pair in Fig. 1;
Fig. 3 is the particular flow sheet of the third step of Fig. 1;
Fig. 4 is the particular flow sheet of the third step of Fig. 3;
Fig. 5 is the process flow diagram of another part of Fig. 1;
The structured flowchart of a kind of terminal that Fig. 6 provides for preferred embodiment of the present invention;
Fig. 7 is the structured flowchart of the determination module in Fig. 6;
Fig. 8 is another structured flowchart of the device of the acceleration client terminal start-up in Fig. 6.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Below in conjunction with accompanying drawing 1, a kind of method of accelerating client terminal start-up that the embodiment of the present invention is provided describes in detail.
Refer to Fig. 1, the process flow diagram of the method for the acceleration client terminal start-up providing for preferred embodiment of the present invention; The method is for accelerating the startup login of client.In the present embodiment, described client platform can be JICQ.The method can comprise the following steps:
S101, reads the first information of the log-on data of client.
Client is starting when login, need to be from hard disk required I/O(input/output during by client terminal start-up, I/O) data read in internal memory.Wherein, described I/O data comprise the first information.The described first information comprises file path, off-set value and length value.
S102, reads the default key-value pair of storage, and wherein said default key-value pair comprises default key assignments and corresponding preset data piece thereof.
Please continue referring to Fig. 2, the generation method of described default key-value pair comprises:
S1021, the second information of the log-on data when reading client and starting for the first time.
Wherein, described the second information comprises file path, off-set value and length value.
S1022, determines described default key assignments according to the second information reading.
Wherein, the pass of described default key assignments and described the second information is: default key assignments=SHA1(file path, off-set value, length value), wherein, SHA1 is Secure Hash Algorithm.
S1023, reads the described preset data piece that definite described default key assignments is corresponding.
Particularly, according to described the second information, from described hard disk, open corresponding file, and the log-on data piece in corresponding document folder is read to internal memory.Therefore the log-on data piece, reading in internal memory is corresponding preset data piece corresponding to described default key assignments of determining.
S1024, the preset data piece that the described default key assignments of determining is corresponding with it forms described default key-value pair.
Wherein, the form of described default key-value pair can be following form: (default key assignments, preset data piece).
S1025, stores described default key-value pair.
Wherein, storing described default key-value pair can store for the default key-value pair forming is written to described hard disk from described internal memory.
S103, determines that the first information reading mates with the default key-value pair reading, and extracts the start-up course that the described preset data piece corresponding with the described first information directly carried out client.
Particularly, judge whether the first information reading mates with the default key-value pair reading.When the first information reading when judgement mates with the default key-value pair reading, be and determine that the first information reading mates with the default key-value pair reading, extract the start-up course that the described preset data piece corresponding with the described first information carried out client.
Please continue to refer to Fig. 3, the definite first information reading in step S103 mates and comprises with the default key-value pair reading:
S1031, determines corresponding the first key assignments according to the first information reading.
Wherein, the pass of described the first key assignments and the described first information is: the first key assignments=SHA1(file path, off-set value, length value), SHA1 is Secure Hash Algorithm.The described first information comprises file path, off-set value and length value.
S1032, determines that described the first key assignments is present in the described default key assignments centering reading.
Particularly, judge whether described the first key assignments is present in the described default key assignments centering reading.When judging that described the first key assignments is present in the described default key assignments centering reading, being, determine that described the first key assignments is present in the described default key assignments centering reading.
Further, the definite first information reading in step S103 also mates and comprises with the default key-value pair reading:
S1033, determines that described the first key assignments is in preset data piece corresponding to the described default key assignments centering first data block coupling corresponding with the described first information, and the first information reading described in showing mates with the default key-value pair reading.
Particularly, judge whether described the first key assignments mates in preset data piece the first data block corresponding with the described first information corresponding to described default key assignments centering.When judging that described the first key assignments is when preset data piece corresponding to described default key assignments centering first data block corresponding with the described first information mated, being, determine that described the first key assignments is in preset data piece corresponding to the described default key assignments centering first data block coupling corresponding with the described first information.
Please continue referring to Fig. 4, definite described the first key assignments in described step S1033 comprises in preset data piece corresponding to described default key assignments centering the first data block coupling corresponding with the described first information:
S1034, extracts described the first key assignments at the very first time of preset data piece corresponding to described default key assignments centering stamp.
Wherein, the preset data piece of each default key assignments centering all identifies free stamp.
S1035, extracts the second timestamp of the first data block that the described first information is corresponding.
The data block corresponding to log-on message of wherein, storing in described hard disk all identifies free stamp.
S1036, determines that described the second timestamp is not later than described very first time stamp, shows that described the first key assignments is in preset data piece corresponding to the described default key assignments centering first data block coupling corresponding with the described first information.
Particularly, judge whether described the second timestamp is later than described very first time stamp, when judging that described the second timestamp is not later than described very first time stamp, being, determine that described the second timestamp is not later than described very first time stamp.When judging that described the second timestamp is later than described very first time stamp, be and determine that described the second timestamp is later than described very first time stamp, according to the described first information, from described hard disk, open corresponding file, and the log-on data piece in corresponding document folder is read to the start-up course that internal memory is carried out client.
Please continue to refer to Fig. 5, described method also comprises:
S104, determines that described the first key assignments is not present in the described default key assignments centering reading.
Particularly, judge whether described the first key assignments is present in the described default key assignments centering reading.When judging that described the first key assignments is not present in the described default key assignments centering reading, being, determine that described the first key assignments is not present in the described default key assignments centering reading.
S105, extracts the first data block that described the first key assignments is corresponding.
According to the described first information, from described hard disk, open corresponding file, and the log-on data piece in corresponding document folder is read to internal memory.Therefore the log-on data piece, reading in internal memory is corresponding the first data block corresponding to described the first key assignments of determining.
S106, forms new default key-value pair by described the first key assignments and the first data block of extracting.
Wherein, the form of described default key-value pair can be following form: (default key assignments, preset data piece).
S107, the new default key-value pair forming of storage.
Wherein, the new default key-value pair forming of storage can be stored for the default key-value pair newly forming is written to described hard disk from described internal memory, has increased default key-value pair, thereby the speed of client terminal start-up is provided more.
In this better embodiment, the present invention is by reading the first information of the log-on data of client; Read the default key-value pair of storage, wherein said default key-value pair comprises default key assignments and corresponding preset data piece thereof; Determine that the first information reading mates with the default key-value pair reading, extract the start-up course that the described preset data piece corresponding with the described first information directly carried out client.The present invention makes client without the startup file visiting again in hard disk, press from both sides to call the log-on data piece in opening file when starting, but the preset data piece that directly extracts the corresponding first information of storage is directly carried out to the start-up course of client.The present invention has realized the object of accelerating client terminal start-up.
Refer to Fig. 6, the terminal 200 providing for preferred embodiment of the present invention.Described terminal 200 comprises a kind of device 100 that accelerates client terminal start-up.Described device 100 is for accelerating the startup of client.Described device 100 can comprise: read module 10, determination module 20 and extraction module 30.
Described read module 10 is for reading the first information of the log-on data of client, and reads the default key-value pair of storage.Wherein said default key-value pair comprises that the number of default key assignments and correspondence thereof is default according to piece.
Wherein, client is starting when login, need to be from hard disk required I/O(input/output during by client terminal start-up, I/O) data read in internal memory.Wherein, described I/O data comprise the first information.The described first information comprises file path, off-set value and length value.
Described determination module 20 mates with the default key-value pair reading for determining the first information reading.
Particularly, described determination module 20 judges whether the first information reading mates with the default key-value pair reading.When the first information reading when judgement mates with the default key-value pair reading, be and determine that the first information reading mates with the default key-value pair reading.
Described extraction module 30 is directly carried out the start-up course of client for extracting the described preset data piece corresponding with the described first information.
Please continue to refer to Fig. 7, described determination module 20 comprises determining unit 21 and extraction unit 22.
Described determining unit 21 is for determining corresponding the first key assignments according to the first information reading, also for determining that described the first key assignments is present in the described default key assignments centering reading.Described determining unit 21 is also for determining that described the first key assignments is in preset data piece corresponding to the described default key assignments centering first data block coupling corresponding with the described first information.
Wherein, the pass between the described first information and the first key assignments is: the first key assignments=SHA1(file path, off-set value, length value), SHA1 is Secure Hash Algorithm.The described first information comprises file path, off-set value and length value.
Described determining unit 21 is for judging whether described the first key assignments is present in the described default key assignments centering reading.When judging that described the first key assignments is present in the described default key assignments centering reading, being, determine that described the first key assignments is present in the described default key assignments centering reading.Described determining unit 21 is also for judging whether described the first key assignments mates in preset data piece the first data block corresponding with the described first information corresponding to described default key assignments centering.When judging that described the first key assignments is when preset data piece corresponding to described default key assignments centering first data block corresponding with the described first information mated, being, determine that described the first key assignments is in preset data piece corresponding to the described default key assignments centering first data block coupling corresponding with the described first information.
Described extraction unit 22 stabs in the very first time of preset data piece corresponding to described default key assignments centering for extracting described the first key assignments, and extracts the second timestamp of the first data block that the described first information is corresponding.
Wherein, the preset data piece of each default key assignments centering all identifies free stamp.The data block corresponding to log-on message of storing in described hard disk all identifies free stamp.
Described determining unit 21 is also for determining that described the second timestamp is not later than described very first time stamp.
Particularly, described determining unit 21 judges whether described the second timestamp is later than described very first time stamp, when judging that described the second timestamp is not later than described very first time stamp, being, determines that described the second timestamp is not later than described very first time stamp.
Please continue referring to Fig. 8, described device 100 also comprises composite module 40 and memory module 50.
Described determination module 20 is also for determining that described the first key assignments is not present in the described default key assignments centering reading.
Particularly, described determination module 20 is for judging whether described the first key assignments is present in the described default key assignments centering reading.When judging that described the first key assignments is not present in the described default key assignments centering reading, being, determine that described the first key assignments is not present in the described default key assignments centering reading.
Described composite module 40 is for forming new default key-value pair by described the first key assignments and the first data block of extracting.
Wherein, the form of described default key-value pair can be following form: (default key assignments, preset data piece).
Described memory module 50 is for storing the default key-value pair of new composition.
Wherein, described memory module 50 can be written to described hard disk by the default key-value pair newly forming and store from described internal memory, has increased default key-value pair, thereby the speed of client terminal start-up is provided more.
In this better embodiment, the device 100 that the present invention accelerates client terminal start-up comprises read module 10, determination module 20 and extraction module 30.Described read module 10 is for reading the first information of the log-on data of client, and reads the default key-value pair of storage, wherein said default key-value pair comprise default key assignments and corresponding number default according to piece; Described determination module 20 mates with the default key-value pair reading for determining the first information reading; Described extraction module 30 is directly carried out the start-up course of client for extracting the described preset data piece corresponding with the described first information.The present invention makes client without the startup file visiting again in hard disk, press from both sides to call the log-on data piece in opening file when starting, but the preset data piece corresponding with the first information that directly extracts storage is directly carried out to the start-up course of client.The present invention has realized the object of accelerating client terminal start-up.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, to come the hardware that instruction is relevant to complete by computer program, described program can be stored in a computer read/write memory medium, this program, when carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosed is only preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to the claims in the present invention, still belongs to the scope that the present invention is contained.

Claims (12)

1. a method of accelerating client terminal start-up, is characterized in that, comprising:
Read the first information of the log-on data of client;
Read the default key-value pair of storage, wherein said default key-value pair comprises default key assignments and corresponding preset data piece thereof;
Determine that the first information reading mates with the default key-value pair reading, extract the start-up course that the described preset data piece corresponding with the described first information directly carried out client.
2. the method for claim 1, is characterized in that, described definite first information reading mates and comprises with the default key-value pair reading:
According to the first information reading, determine corresponding the first key assignments;
Determine that described the first key assignments is present in the described default key assignments centering reading.
3. method as claimed in claim 2, is characterized in that, described definite described the first key assignments also comprises after being present in the described default key assignments centering reading:
Determine that described the first key assignments is in preset data piece corresponding to the described default key assignments centering first data block coupling corresponding with the described first information, the first information reading described in showing mates with the default key-value pair reading.
4. method as claimed in claim 3, is characterized in that, described definite described the first key assignments comprises in preset data piece corresponding to described default key assignments centering the first data block coupling corresponding with the described first information:
Extract described the first key assignments at the very first time of preset data piece corresponding to described default key assignments centering stamp;
Extract the second timestamp of the first data block that the described first information is corresponding;
Determine that described the second timestamp is not later than described very first time stamp, show that described the first key assignments is in preset data piece corresponding to the described default key assignments centering first data block coupling corresponding with the described first information.
5. method as claimed in claim 2, is characterized in that, also comprises:
Determine that described the first key assignments is not present in the described default key assignments centering reading, and extracts the first data block that described the first key assignments is corresponding;
Described the first key assignments and the first data block of extracting are formed to new default key-value pair;
The new default key-value pair forming of storage.
6. the method as described in any one in claim 1-5, is characterized in that, described first and second information is file path, off-set value and length value.
7. a device that accelerates client terminal start-up, is characterized in that, comprising:
Read module, for reading the first information of the log-on data of client, and reads the default key-value pair of storage, and wherein said default key-value pair comprises that the number of default key assignments and correspondence thereof is default according to piece;
Determination module, for determining that the first information reading mates with the default key-value pair reading;
Extraction module, directly carries out the start-up course of client for extracting the described preset data piece corresponding with the described first information.
8. device as claimed in claim 7, is characterized in that, described determination module comprises:
Determining unit, for determining corresponding the first key assignments according to the first information reading, also for determining that described the first key assignments is present in the described default key assignments centering reading.
9. device as claimed in claim 8, is characterized in that, described determining unit is also for determining that described the first key assignments is in preset data piece corresponding to the described default key assignments centering first data block coupling corresponding with the described first information.
10. device as claimed in claim 8, is characterized in that, described determination module also comprises:
Extraction unit, for extracting described the first key assignments at the very first time of preset data piece corresponding to described default key assignments centering stamp, and extracts the second timestamp of the first data block that the described first information is corresponding; Wherein, described determining unit is also for determining that described the second timestamp is not later than described very first time stamp.
11. devices as claimed in claim 7, it is characterized in that, described device also comprises: composite module and memory module, wherein, described determination module is also for determining that described the first key assignments is not present in the described default key assignments centering reading, described composite module is for forming new default key-value pair by described the first key assignments and the first data block of extracting, and described memory module is for storing the default key-value pair of new composition.
12. 1 kinds of terminals, is characterized in that, it comprises the device of the acceleration client terminal start-up as described in claim 7-11 any one.
CN201310012669.8A 2013-01-14 2013-01-14 Method and device for accelerating starting of client and terminal Pending CN103927192A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310012669.8A CN103927192A (en) 2013-01-14 2013-01-14 Method and device for accelerating starting of client and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310012669.8A CN103927192A (en) 2013-01-14 2013-01-14 Method and device for accelerating starting of client and terminal

Publications (1)

Publication Number Publication Date
CN103927192A true CN103927192A (en) 2014-07-16

Family

ID=51145424

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310012669.8A Pending CN103927192A (en) 2013-01-14 2013-01-14 Method and device for accelerating starting of client and terminal

Country Status (1)

Country Link
CN (1) CN103927192A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105530162A (en) * 2014-10-21 2016-04-27 中兴通讯股份有限公司 Offline message processing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101854428A (en) * 2010-03-04 2010-10-06 宇龙计算机通信科技(深圳)有限公司 Method for recovering files during mobile terminal startup
CN102707966A (en) * 2012-04-12 2012-10-03 腾讯科技(深圳)有限公司 Method and device for acceleratively starting operating system, and method, device and terminal for generating prefetched information
CN102830996A (en) * 2012-08-08 2012-12-19 广东欧珀移动通信有限公司 Fast boot method of handheld device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101854428A (en) * 2010-03-04 2010-10-06 宇龙计算机通信科技(深圳)有限公司 Method for recovering files during mobile terminal startup
CN102707966A (en) * 2012-04-12 2012-10-03 腾讯科技(深圳)有限公司 Method and device for acceleratively starting operating system, and method, device and terminal for generating prefetched information
CN102830996A (en) * 2012-08-08 2012-12-19 广东欧珀移动通信有限公司 Fast boot method of handheld device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105530162A (en) * 2014-10-21 2016-04-27 中兴通讯股份有限公司 Offline message processing method and device

Similar Documents

Publication Publication Date Title
US9536261B2 (en) Resolving conflicts within saved state data
CN109388965B (en) Desensitization method and system for mixed data
US9197629B2 (en) Remote direct memory access authentication of a device
CN108022583A (en) Meeting summary generation method, application server and computer-readable recording medium
CN109876450A (en) Implementation method, server, computer equipment and storage medium based on AR game
CN103942292A (en) Virtual machine mirror image document processing method, device and system
CN112445596B (en) Data importing method, system and storage medium based on multithreading
CN103218555A (en) Logging-in method and device for application program
WO2019085466A1 (en) Association test method and system, application server, and computer readable storage medium
CN104572781A (en) Method and device for generating transaction log
CN106503069A (en) File sharing method and device
CN112784112A (en) Message checking method and device
CN116737482A (en) Method and device for collecting chip test data in real time and electronic equipment
CN110069533B (en) Event subscription method and device based on blockchain
CN104778252A (en) Index storage method and index storage device
CN104536780A (en) Electronic game resource high-efficiency loading method and system
CN105677579B (en) Data access method in caching system and system
CN103927192A (en) Method and device for accelerating starting of client and terminal
CN104834549B (en) The application file update method and device of mobile terminal
US20180034749A1 (en) System and method for distributing and replaying trigger packets via a variable latency bus interconnect
WO2016188079A1 (en) Data storage method for terminal device and terminal device
CN107315806B (en) Embedded storage method and device based on file system
CN109726181B (en) Data processing method and data processing device
CN109617984A (en) A kind of data storage cloud online management system
CN105551500B (en) A kind of acoustic signal processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140716

RJ01 Rejection of invention patent application after publication