CN101996101B - Method and device for optimizing application program performance - Google Patents

Method and device for optimizing application program performance Download PDF

Info

Publication number
CN101996101B
CN101996101B CN 200910091238 CN200910091238A CN101996101B CN 101996101 B CN101996101 B CN 101996101B CN 200910091238 CN200910091238 CN 200910091238 CN 200910091238 A CN200910091238 A CN 200910091238A CN 101996101 B CN101996101 B CN 101996101B
Authority
CN
China
Prior art keywords
data
load
time
input string
dictionary data
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.)
Active
Application number
CN 200910091238
Other languages
Chinese (zh)
Other versions
CN101996101A (en
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.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development 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 Beijing Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN 200910091238 priority Critical patent/CN101996101B/en
Publication of CN101996101A publication Critical patent/CN101996101A/en
Application granted granted Critical
Publication of CN101996101B publication Critical patent/CN101996101B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to the technical field of data processing and discloses a method and a device for optimizing application program performance. The method comprises the following steps of: monitoring the operation state of a system; and if the operation state of the system satisfies a preset condition, loading or unloading application program data corresponding to the preset condition. The invention smoothens the operation of an application program and improves the response speed of the application program.

Description

Input method system performance optimization method and device
Technical field
The present invention relates to data processing technique, be specifically related to a kind of input method system performance optimization method and device.
Background technology
In the use of some equipment, through regular meeting various application programs need be installed, so that this equipment provides corresponding function.But application program use and some hardware parameters of installation and equipment etc. have direct relation, whether support the running environment that this application program is required such as the hardware of equipment, and whether the current situation of device hardware can smooth and easyly run application.And when application program was moved, the user also had higher requirement to its response speed.
For example, input method is to need the software that uses on computers at any time, also is mobile phone, PDA(Personal Digital Assistant, the personal digital assistant) software that the user often uses, the user requires than higher its response speed.Simultaneously the user wishes also that input method can be judged more accurately and user view provides the candidate item that the user wants most, and this just needs input method can utilize more data and more calculate.Two demands like this contradict each other often, when particularly after starting computer, using input method for the first time, current intelligent high input method all needs lot of data (about 10M or more) is read internal memory from disk, and the speed of computer reading disk is approximately than reading slow 10 times of internal memory, this just causes can feeling tangible pause when using input method first, influence user's input efficiency.
Therefore, how the performance of application programs to be optimized be the important topic that this area need be studied always.
Summary of the invention
The invention provides a kind of input method system performance optimization method and device, control by the input method system data to load or unload, input method system can smooth and easyly be moved, improve the reaction velocity of input method system.
For this reason, the invention provides following technical scheme:
A kind of input method system performance optimization method comprises:
Loading is converted to the basic function data of candidate item with input string utilization basis dictionary, comprising: load basic dictionary data;
Get access to input string;
According to the basic dictionary data that load described input string is carried out computing, obtain candidate item;
The operation conditions of supervisory system, surpass the schedule time or surpass the schedule time above the schedule time or from getting access to input string to the timing time that obtains candidate item according to the basic dictionary data of loading are carried out computing to described input string timing time if load the timing time of basic dictionary, then do not load one or more performance datas in the additional function data.
Described input method system comprises the dictionary data of the different pieces of information amount grade with the relation of containing; Described method also comprises: if the operation conditions of system satisfies predetermined condition, and the described dictionary data of load or unload and the corresponding grade of described predetermined condition.
Alternatively, described predetermined condition comprises following any one or multinomial:
CPU usage reach predefined ranges of value, storage medium input and output total amount reach predefined ranges of value, timing time reach predefined ranges of value, storage medium with or active volume reach predefined ranges of value, cpu frequency and reach predefined ranges of value, storage medium total volume and reach predefined ranges of value, network transfer speeds and reach predefined ranges of value, the network bandwidth and reach specific file data amount that predefined ranges of value, application program use and reach predefined ranges of value, system's computing or load the employed time of data and reach predefined ranges of value.
Alternatively, the operation conditions of described supervisory system comprises:
When installing or disposing or upgrading described input method, the operation conditions of supervisory system; Perhaps
When starting described input method, the operation conditions of supervisory system; Perhaps
When the described input method of operation, the operation conditions of supervisory system.
Preferably, described method also comprises:
The operation conditions of described system satisfies predetermined condition, then points out the user to select the load or unload described additional function data corresponding with described predetermined condition.
Alternatively, described additional function data comprise:
In the system default dictionary, inquire about vocabulary, in user thesaurus, inquire about vocabulary, in the cell dictionary, inquire about vocabulary, fixedly word inquiry, self-defined phrase inquiry, intelligent word, candidate word sequence adjustment, skin function, fuzzy sound function, intelligent correction function, error correcting prompt function according to input string according to input string according to input string.
Alternatively, described dictionary data comprise: the adjunct word database data that basic dictionary data and one or more mutual nothing are occured simultaneously;
Described load or unload comprises with the described dictionary data of the corresponding grade of predetermined condition: according to the satisfied predetermined condition of the operation conditions of system, the one or more described adjunct word database datas of load or unload.
Alternatively, described method also comprises:
Utilize the basic dictionary data and the adjunct word database data that load that described input string is carried out computing, generate candidate item;
Export described candidate item.
Alternatively, described method also comprises:
If described computing has a plurality of steps, then after each step operation is finished, detect described timing time and whether surpass the schedule time;
If timing time surpasses the schedule time, then stop to carry out follow-up computing.
Alternatively, the DLL (dynamic link library) of the system time by the read operation system obtains described timing time; Perhaps the DLL (dynamic link library) of the clock periodicity by obtaining CPU obtains described timing time.
A kind of input method system performance optimization device comprises:
Loading unit is used for loading the basic function data that input string utilization basis dictionary are converted to candidate item, comprising: load basic dictionary data;
The input string acquiring unit is used for obtaining input string;
Arithmetic element is used for according to the basic dictionary data that load described input string being carried out computing, obtains candidate item;
Timing unit, the operation conditions of supervisory system, be used for surpassing the schedule time or from getting access to after input string surpasses the schedule time to the timing time that obtains candidate item at the timing time that the timing time that loads basic dictionary surpasses the schedule time or described input string carried out computing according to the basic dictionary data that load, notify described loading unit not load one or more performance datas in the additional function data.
12, device according to claim 11 is characterized in that, described input method system comprises the dictionary data of the different pieces of information amount grade with the relation of containing;
Described loading unit, concrete being used for when the operation conditions of system satisfies predetermined condition, the described dictionary data of load or unload and the corresponding grade of described predetermined condition.
Described input method system comprises the dictionary data of the different pieces of information amount grade with the relation of containing;
Described loading unit, concrete being used for when the operation conditions of system satisfies predetermined condition, the described dictionary data of load or unload and the corresponding grade of described predetermined condition.
Alternatively, described monitoring unit specifically is used for:
When installing or disposing or upgrading described input method, the operation conditions of supervisory system; Perhaps
When starting described input method, the operation conditions of supervisory system; Perhaps
When the described input method of operation, the operation conditions of supervisory system.
Alternatively, described dictionary data comprise: the adjunct word database data that basic dictionary data and one or more mutual nothing are occured simultaneously;
Described loading unit, concrete being used for according to the satisfied predetermined condition of the operation conditions of system, the one or more described adjunct word database datas of load or unload.
Alternatively, described device also comprises:
Arithmetic element is used for utilizing the basic dictionary data and the adjunct word database data that load that described input string is carried out computing, generates candidate item;
Output unit is used for the described candidate item of output.
Alternatively, described device also comprises:
Detecting unit is used for when described computing has a plurality of step, detects described timing time and whether surpass the schedule time after each step operation is finished, if timing time surpasses the schedule time, then notifies described arithmetic element to stop to carry out follow-up computing.
Alternatively, described timing unit, the concrete DLL (dynamic link library) acquisition timing time that is used for by the system time of read operation system; Perhaps the DLL (dynamic link library) of the clock periodicity by obtaining CPU obtains timing time.
By above technical scheme provided by the invention as can be seen, embodiment of the invention application program capacity optimization method and device, overcome in the prior art, can't adjust the data volume of load or unload in the processes such as application program installation, configuration, upgrading, startup, operation according to system operation situation, thereby cause application program smooth and easyly not move, even the defective that can not install.Operation conditions by supervisory system, operation conditions in system satisfies under the predetermined condition, load or unload and described predetermined condition corresponding application program data, thereby the application program of loading and system operation situation are adapted, improve the reaction velocity of application program, and reduce the influence to other processes of system.Be configured by additional function or the additional dictionary that does not influence the basic function realization in the application programs, with the adaptive system situation, thereby guaranteed the self-adaptation of application program to system, it can smooth and easyly be moved under various system environmentss.
Description of drawings
Fig. 1 is a kind of process flow diagram of embodiment of the invention application program capacity optimization method;
Fig. 2 is the process flow diagram that loads input method in the embodiment of the invention;
Fig. 3 is a kind of structural representation that embodiment of the invention application program capacity is optimized device.
Embodiment
In order to make those skilled in the art person understand the scheme of the embodiment of the invention better, below in conjunction with drawings and embodiments the embodiment of the invention is described in further detail.
Embodiment of the invention application program capacity optimization method and device, different characteristics and system operation situation at various application programs, the application data that load or unload and system running state adapt, thereby can bring into play the function of the application program of loading best, its performance is optimized.
With reference to Fig. 1, be a kind of process flow diagram of embodiment of the invention application program capacity optimization method, may further comprise the steps:
Step 101, the operation conditions of supervisory system.
Step 102, if the operation conditions of system satisfies predetermined condition, then load or unload and described predetermined condition corresponding application program data.
Wherein, described predetermined condition comprises following any one or multinomial: CPU usage reaches predefined ranges of value, storage medium (comprises internal memory, the flash storer, disk, CD etc.) input and output total amount reaches predefined ranges of value, timing time reaches predefined ranges of value, storage medium with or active volume reach predefined ranges of value, cpu frequency reaches predefined ranges of value, the storage medium total volume reaches predefined ranges of value, network transfer speeds reaches predefined ranges of value, the network bandwidth reaches predefined ranges of value, the specific file data amount that application program is used reaches predefined ranges of value, system's computing or loading employed time of data reach predefined ranges of value.
In addition, system operation situation of the present invention can also be the residing environment of equipment, comprises that the travel speed etc. of air themperature, humidity, mobile unit can influence the external factor of hardware operation.
Consider the needs of different equipment actual application environment, its hardware configuration and the function that possesses are had nothing in common with each other, and, when application program loads, the operation conditions of system is also different, such as, outside installing, dispose, upgrade, start or move described application program, except the application program that needs load, also may there be other programs in described system in operation.Therefore, the application data that the embodiment of the invention adapts by load or unload and system running state can be brought into play the function of the application program of loading best, and its performance is optimized.
In embodiments of the present invention, also can further may further comprise the steps: the operation conditions of described system satisfies predetermined condition, then points out the user to select load or unload and described predetermined condition corresponding application program data.
In addition, for same application, according to application demand, may install at the equipment of nonidentity operation ability, such as at computing machine, mobile phone, PDA etc., can decide the data of application programs correspondence all to load still part loading according to hardware capabilities and the operation conditions of this equipment, and the concrete data that load.Be understandable that, the hardware configuration of mobile phone or other hand-hold electronic equipments far is inferior to personal desktop PC, and the hardware configuration difference of each equipment room is also very big, thereby, these equipment are installed when disposing, upgrade, start or running application, need the function of differentiation and load data, so that application program all has good operation conditions on each equipment, determine whether to load fuzzy sound function data and the operation of input method such as the cpu frequency according to mobile phone, or determine whether to load cell dictionary, user thesaurus and query candidate item therefrom according to memory size.
Described application program can be required any application, such as, browser, input method etc.Correspondingly, corresponding with each application program data owner will comprise some performance datas.
Such as for browser, its performance data can comprise following any one or multiple: search, start and terminating chain connection function data, history and bookmark function data, setting screen window function data, select the start page performance data, change the style performance data, font and color arrange performance data, check embedded image and external image performance data, preserve and printing homepage performance data, user property arranges performance data, the related data of user's login function, the data of user cookie, the website data of systemic presupposition, the performance data of webpage convergent-divergent, the data of user network access to web page process, webpage cache file data, the user lands registration information data, skin function data etc.
For another example, for input method, its performance data can comprise the basic function data that input string utilization basis dictionary are converted to candidate item, also can further comprise following any one or additional functions data: inquire about vocabulary in the system default dictionary, inquire about vocabulary in user thesaurus, inquire about vocabulary, fixedly word inquiry, self-defined phrase inquiry, intelligent word, candidate word sequence adjustment, skin function in the cell dictionary, blur sound function, intelligent correction function, error correcting prompt function according to input string according to input string according to input string.After these performance datas of system loads, can carry out corresponding computing according to these performance datas.Such as, by the current CPU usage of test macro, if be higher than 80%, then the performance data of load operating " intelligent word " does not perhaps load " cell dictionary " data and inquires about vocabulary according to input string in the cell dictionary.
Certainly, specifically can determine according to the different of application the division of basic function data and additional function data, this embodiment of the invention is not limited.Such as, in user thesaurus, to inquire about and inquire about the inquiry of vocabulary, self-defined phrase, the fixing performance data of function correspondence such as word inquiry in vocabulary, the cell dictionary, these functions also can be divided in the basic function data.
In addition, because input method self, the data corresponding with it can also be: the dictionary data.Certainly, for input method, also can comprise performance data and dictionary data simultaneously with predetermined condition corresponding application program data.
In concrete the application, in order to adapt to different loading needs, preferably described dictionary data are set to following dual mode:
(1) the dictionary data is divided into a plurality of dictionary data of the different pieces of information amount grade with the relation of containing.
That is to say, the data volume difference that each dictionary data comprises, and have the relation of containing.Like this, when load or unload and described predetermined condition corresponding application program data, can load or unload and the dictionary data of the corresponding grade of described predetermined condition, to satisfy different application demands.
(2) the dictionary data are divided into the adjunct word database data that basic dictionary data and one or more mutual nothing are occured simultaneously.
In order to improve the toggle speed of input method, data when starting for input method in the prior art load (from the disk to the internal memory) and adopt the asynchronous load mode of multithreading, namely when input method starts, after data necessary is finished in loading, start one or more threads and load other data, and main thread utilizes loaded data to carry out computing, show basic candidate item, thereby needn't wait pending data all to load and just finish and can react to user's input, accelerated the reaction velocity of input method.But this load mode only is applicable to that solution is because loading slow in reacting that data cause, for causing the busy situation that influences to the input method response speed of system helpless owing to other reasons such as other programs.And, when utilizing multithreading to carry out the data loading, also need when starting, input method take system's ample resources immediately, though input method is responded as early as possible, may influence the operation of other programs of system.
Understandable, the dictionary of the minimum data amount in above-mentioned (1) can be the basic dictionary described in above-mentioned (2), this basis dictionary is the dictionary that input method is converted to input string the necessary minimum word amount of candidate item, when loading minimum dictionary data, input method generates candidate item in order to satisfy, under specific system operation situation, can only load basic dictionary and not load other dictionary data that surpass basic dictionary scope, thereby generate basic candidate item.Need to prove especially, two kinds of dictionaries that may have above-mentioned (1) mode and (2) mode in the system simultaneously, and the dictionary data that system can set up according to concrete operation conditions or running environment one or both modes wherein of loading, if load the dictionary that dual mode is set up, then they have shared basic dictionary.
And utilize embodiment of the invention application program capacity optimization method, and can address the above problem preferably, improve the reaction velocity of input method, and reduce the influence to other processes of system.
(2) the kind mode that arranges with regard to above predicate database data is example below, further describes the method for utilizing the embodiment of the invention and carries out a kind of preferred process that input method loads.
As shown in Figure 2, be a kind of process flow diagram that loads input method in the embodiment of the invention, may further comprise the steps:
Step 201 when input method is installed, loads the performance data of input method;
Step 202 picks up counting after getting access to input string;
Step 203 loads basic dictionary data, and according to the basic dictionary data that load described input string is carried out computing, generates candidate item;
Step 204 judges that the loading used time of basic dictionary surpasses the schedule time or according to the basic dictionary data that load described input string carried out the used time of computing above the schedule time or from getting access to input string to whether obtaining the used time of candidate item above the schedule time; If then execution in step 206; Otherwise, execution in step 205;
Step 205, the one or more adjunct word database datas of load or unload, and utilize the basic dictionary data and the adjunct word database data that load that input string is carried out computing, generate candidate item;
Step 206, the output candidate item.
In the above-described embodiments, described timing time can obtain by several different methods, such as adopting following several method:
(1) obtains by the timer timing.
(2) DLL (dynamic link library) of the system time by the read operation system obtains described timing time.
Because the DLL (dynamic link library) of the system time of read operation system is arranged, therefore can just can obtain timing result by in the different time points reading system time and do poorly on each operating system.
When supposing that timing begins, the system time that reads at that time is Ts; When carrying out time-out check, reading system time T t again then obtains timing time and is (Tt – Ts), and the time that obtains and the schedule time of setting compare, if the mistiming, then think overtime greater than the described schedule time, otherwise not overtime.
(3) DLL (dynamic link library) of the clock periodicity by obtaining CPU obtains described timing time.
Except system time, also can adopt the cpu clock cycle to carry out timing, windows operating system provides obtains the DLL (dynamic link library) of CPU from start to the current clock periodicity that experiences, and the time of day of cpu clock period ratio system time can be meticulousr.
Need to prove, the setting of the described schedule time can be considered following two factors: the one, and the user experiences the common input method reaction velocity that can stand, generally speaking (add the time of processes such as state judgement, interface drafting the computing time within 10ms behind the user keystroke, altogether within 20ms), it is very smooth and easy that the user feels, the total reaction time within 100ms also is acceptable.The 2nd, input method is (system is not in a hurry, and the input method data all have been loaded into internal memory) generally, the needed time of computation process.Such as, on the personal computer of present mainstream configuration, common computing time is about 5ms.In conjunction with these two factors, can set the described schedule time is 10ms.
The embodiment of the invention in order to promote the reaction velocity of input method, after timing time surpasses the schedule time, does not reload the adjunct word database data, only according to the basic dictionary data that load described input string is carried out computing, generates candidate item.Thereby can improve the reaction velocity of input method, reduce period of reservation of number, improve user's experience, and can not exert an influence to other processes of system.
In the invention described above embodiment, can further include following steps: if described computing has a plurality of steps, then after each step operation is finished, detect described timing time and whether surpass the schedule time; If timing time surpasses the schedule time, then stop to carry out follow-up computing.
Need to prove, time restriction mode among the invention described above embodiment can not cause the adjunct word database data to can not get all the time loading, it is overtime because though the loading of primary word database data can cause when the input method initial start-up, but when carrying out next computing, because the primary word database data loaded, so it is overtime that computing is not easy to cause, thereby the adjunct word database data can be loaded and carry out extra computing, export more candidate item more accurately.
The method of the embodiment of the invention does not need to start in advance input method, only when using input method, the user just starts, thereby extra occupying system resources not.With respect to the asynchronous loading method of multithreading, the method of the embodiment of the invention abandons loading non-essential data when time restriction takes place, thereby has not only reduced the reaction time of input method itself, and not can with other process competitive resources of system, cause the reaction of other processes slack-off.
One of ordinary skill in the art will appreciate that all or part of step that realizes in above-described embodiment method is to instruct relevant hardware to finish by program, described program can be stored in the computer read/write memory medium, described storage medium, as: ROM/RAM, magnetic disc, CD etc.
The embodiment of the invention also provides a kind of application program capacity to optimize device, as shown in Figure 3, is a kind of structural representation of this device.
In this embodiment, described device comprises:
Monitoring unit 301 is for the operation conditions of supervisory system;
Loading unit 302 is used for when the operation conditions of described system satisfies predetermined condition load or unload and described predetermined condition corresponding application program data.
Particularly, described monitoring unit can be when installing or disposing or upgrading described application program, the operation conditions of supervisory system; Perhaps when starting described application program, the operation conditions of supervisory system; Perhaps in operation during described application program, the operation conditions of supervisory system.And the opportunity of above-mentioned supervisory control system running situation can combination in any carry out, comprise separately when a certain therein machine monitoring or in the time of any two machine monitoring, or even monitor if having time to the institute that the input method activity is arranged in system identification.In addition, if make up supervisory control system running situation on a plurality of opportunity, then after the monitoring carried out can utilize the data of before having monitored to be used as judging whether system operation situation satisfies the information of predetermined condition, for example when being installed, input method just monitors the cpu frequency of system, then this information is preserved, when starting or move input method, utilize this information to judge whether to satisfy predetermined condition.
Preferably, described predetermined condition comprises following any one or multinomial: CPU usage reach predefined ranges of value, storage medium input and output total amount reach predefined ranges of value, timing time reach predefined ranges of value, storage medium with or active volume reach predefined ranges of value, cpu frequency and reach predefined ranges of value, storage medium total volume and reach predefined ranges of value, network transfer speeds and reach predefined ranges of value, the network bandwidth and reach specific file data amount that predefined ranges of value, application program use and reach predefined ranges of value, system's computing or load the employed time of data and reach predefined ranges of value.
In embodiments of the present invention, described application program can be any application, such as: browser, input method etc.Correspondingly, if with described some performance datas of predetermined condition corresponding application program data owner, for input method, can also be the dictionary data, certainly, can also comprise performance data and dictionary data simultaneously.
The performance data of corresponding browser comprise following any one or multiple: search, startup and terminating chain connection function data, historical with bookmark function data, setting screen window function data, select the start page performance data, change style performance data, font and color and performance data is set, checks embedded image and external image performance data, preservation and printing homepage performance data.
The performance data of corresponding input method comprises: input string utilization basis dictionary is converted to the basic function data of candidate item, also can further comprises following any one or additional functions data: inquire about vocabulary in the system default dictionary, inquire about vocabulary in user thesaurus, inquire about vocabulary, fixedly word inquiry, self-defined phrase inquiry, intelligent word, candidate word sequence adjustment, skin function in the cell dictionary, blur sound function, intelligent correction function according to input string according to input string according to input string.
After these performance datas of system loads, can carry out corresponding computing according to these performance datas.
For input method, in order to adapt to the load or unload demand of different application, preferably described dictionary data are set to following dual mode:
(1) the dictionary data is divided into a plurality of dictionary data of the different pieces of information amount grade with the relation of containing.
That is to say, the data volume difference that each dictionary data comprises, and have the relation of containing.Like this, when load or unload and described predetermined condition corresponding application program data, can load or unload and the dictionary data of the corresponding grade of described predetermined condition, to satisfy different application demands.
(2) the dictionary data are divided into the adjunct word database data that basic dictionary data and one or more mutual nothing are occured simultaneously.
Under above-mentioned (1) kind situation, described loading unit 302 is specifically for the described data acquisition of load or unload with the corresponding grade of described predetermined condition.
Under above-mentioned (2) kind situation, described loading unit 302, concrete being used for according to the satisfied predetermined condition of the operation conditions of system, the one or more described adjunct word database datas of load or unload.
In embodiments of the present invention, described device also can further comprise: arithmetic element (not shown) and output unit (not shown).Wherein:
Described arithmetic element is used for utilizing the basic dictionary data and the adjunct word database data that load that described input string is carried out computing, generates candidate item;
Described output unit is used for the described candidate item of output.
Corresponding to the loading of input method, described performance data comprises: the basic function that input string utilization basis dictionary is converted to candidate item; Described device also comprises: input string acquiring unit and timing unit (not shown).Described input string acquiring unit is used for obtaining input string; Described loading unit, the concrete basic dictionary data of loading that are used for; Described arithmetic element, concrete being used for carried out computing according to the basic dictionary data that load to described input string, obtains candidate item; Described timing unit, be used for surpassing the schedule time or described input string being carried out the used time of computing above the schedule time or from getting access to input string to obtaining the used time of candidate item above after the schedule time according to the basic dictionary data that load in the loading used time of basic dictionary, notify described loading unit not load one or more performance datas in the described additional function data.
Particularly, described timing unit can pass through the DLL (dynamic link library) acquisition timing time of the system time of read operation system; Perhaps the DLL (dynamic link library) of the clock periodicity by obtaining CPU obtains timing time, and this is had detailed description in embodiment of the invention application program optimization method in front.
Alternatively, described device also can further comprise: detecting unit (not shown), be used for when described computing has a plurality of step, after each step operation is finished, detect described timing time and whether surpass the schedule time, if timing time surpasses the schedule time, then notify described arithmetic element to stop to carry out follow-up computing.
Embodiment of the invention application program capacity is optimized device, different characteristics and system operation situation at various application programs, the application data that load or unload and system running state adapt, thus can bring into play the function of the application program of loading best, its performance is optimized.
The present invention can be used in numerous general or special purpose computingasystem environment or the configuration.For example: personal computer, server computer, multicomputer system, the system based on microprocessor, set top box, programmable consumer-elcetronics devices, network PC, small-size computer, mainframe computer, comprise distributed computing environment of above any system or equipment etc.
The present invention can describe in the general context of the computer executable instructions of being carried out by computing machine, for example program module.Usually, program module comprises the routine carrying out particular task or realize particular abstract data type, program, object, assembly, data structure etc.Also can in distributed computing environment, put into practice the present invention, in these distributed computing environment, be executed the task by the teleprocessing equipment that is connected by communication network.In distributed computing environment, program module can be arranged in the local and remote computer-readable storage medium that comprises memory device.
More than the embodiment of the invention is described in detail, used embodiment herein the present invention set forth, the explanation of above embodiment just is used for helping to understand device and method of the present invention; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (16)

1. an input method system performance optimization method is characterized in that, comprising:
Loading is converted to the basic function data of candidate item with input string utilization basis dictionary, comprising: load basic dictionary data;
Get access to input string;
According to the basic dictionary data that load described input string is carried out computing, obtain candidate item;
The operation conditions of supervisory system, surpass the schedule time or surpass the schedule time above the schedule time or from getting access to input string to the timing time that obtains candidate item according to the basic dictionary data of loading are carried out computing to described input string timing time if load the timing time of basic dictionary, then do not load one or more performance datas in the additional function data.
2. method according to claim 1 is characterized in that,
Described input method system comprises the dictionary data of the different pieces of information amount grade with the relation of containing; Described method also comprises: if the operation conditions of system satisfies predetermined condition, and the described dictionary data of load or unload and the corresponding grade of described predetermined condition.
3. method according to claim 2, it is characterized in that described predetermined condition comprises following any one or multinomial: CPU usage reach predefined ranges of value, storage medium input and output total amount reach predefined ranges of value, timing time reach predefined ranges of value, storage medium with or active volume reach predefined ranges of value, cpu frequency and reach predefined ranges of value, network transfer speeds and reach predefined ranges of value, the network bandwidth and reach specific file data amount that predefined ranges of value, application program use and reach predefined ranges of value, system's computing or load the employed time of data and reach predefined ranges of value.
4. method according to claim 1 and 2 is characterized in that, the operation conditions of described supervisory system comprises:
When installing or disposing or upgrading input method, the operation conditions of supervisory system; Perhaps
When starting described input method, the operation conditions of supervisory system; Perhaps
When the described input method of operation, the operation conditions of supervisory system.
5. method according to claim 1 and 2 is characterized in that, described method also comprises:
The operation conditions of described system satisfies predetermined condition, then points out the user to select the load or unload described additional function data corresponding with described predetermined condition.
6. method according to claim 1 and 2, it is characterized in that described additional function data comprise: in the system default dictionary, inquire about vocabulary, in user thesaurus, inquire about vocabulary, in the cell dictionary, inquire about vocabulary, fixedly word inquiry, self-defined phrase inquiry, intelligent word, candidate word sequence adjustment, skin function, fuzzy sound function, intelligent correction function, error correcting prompt function according to input string according to input string according to input string.
7. method according to claim 2 is characterized in that, described dictionary data comprise: the adjunct word database data that basic dictionary data and one or more mutual nothing are occured simultaneously;
Described load or unload comprises with the described dictionary data of the corresponding grade of predetermined condition: according to the satisfied predetermined condition of the operation conditions of system, the one or more described adjunct word database datas of load or unload.
8. method according to claim 7 is characterized in that, described method also comprises:
Utilize the basic dictionary data and the adjunct word database data that load that described input string is carried out computing, generate candidate item;
Export described candidate item.
9. method according to claim 1 is characterized in that, described method also comprises:
If described computing has a plurality of steps, then after each step operation is finished, detect described timing time and whether surpass the schedule time;
If timing time surpasses the schedule time, then stop to carry out follow-up computing.
10. method according to claim 1 is characterized in that,
The DLL (dynamic link library) of the system time by the read operation system obtains described timing time; Perhaps
The DLL (dynamic link library) of the clock periodicity by obtaining CPU obtains described timing time.
11. an input method system performance optimization device is characterized in that, comprising:
Loading unit is used for loading the basic function data that input string utilization basis dictionary are converted to candidate item, comprising: load basic dictionary data;
The input string acquiring unit is used for obtaining input string;
Arithmetic element is used for according to the basic dictionary data that load described input string being carried out computing, obtains candidate item;
Timing unit, the operation conditions of supervisory system, be used for surpassing the schedule time or from getting access to after input string surpasses the schedule time to the timing time that obtains candidate item at the timing time that the timing time that loads basic dictionary surpasses the schedule time or described input string carried out computing according to the basic dictionary data that load, notify described loading unit not load one or more performance datas in the additional function data.
12. device according to claim 11 is characterized in that, described input method system comprises the dictionary data of the different pieces of information amount grade with the relation of containing;
Described loading unit, concrete being used for when the operation conditions of system satisfies predetermined condition, the described dictionary data of load or unload and the corresponding grade of described predetermined condition.
13. device according to claim 12 is characterized in that, described dictionary data comprise: the adjunct word database data that basic dictionary data and one or more mutual nothing are occured simultaneously;
Described loading unit, concrete being used for according to the satisfied predetermined condition of the operation conditions of system, the one or more described adjunct word database datas of load or unload.
14. device according to claim 13 is characterized in that, described device also comprises:
Arithmetic element is used for utilizing the basic dictionary data and the adjunct word database data that load that described input string is carried out computing, generates candidate item;
Output unit is used for the described candidate item of output.
15. device according to claim 11 is characterized in that, described device also comprises:
Detecting unit is used for when described computing has a plurality of step, detects described timing time and whether surpass the schedule time after each step operation is finished, if timing time surpasses the schedule time, then notifies described arithmetic element to stop to carry out follow-up computing.
16. device according to claim 11 is characterized in that,
Described timing unit, the concrete DLL (dynamic link library) acquisition timing time that is used for by the system time of read operation system; Perhaps the DLL (dynamic link library) of the clock periodicity by obtaining CPU obtains timing time.
CN 200910091238 2009-08-13 2009-08-13 Method and device for optimizing application program performance Active CN101996101B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910091238 CN101996101B (en) 2009-08-13 2009-08-13 Method and device for optimizing application program performance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910091238 CN101996101B (en) 2009-08-13 2009-08-13 Method and device for optimizing application program performance

Publications (2)

Publication Number Publication Date
CN101996101A CN101996101A (en) 2011-03-30
CN101996101B true CN101996101B (en) 2013-08-28

Family

ID=43786284

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910091238 Active CN101996101B (en) 2009-08-13 2009-08-13 Method and device for optimizing application program performance

Country Status (1)

Country Link
CN (1) CN101996101B (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102306095B (en) * 2011-07-21 2017-04-05 宇龙计算机通信科技(深圳)有限公司 Application management method and terminal
CN102981863B (en) * 2011-09-07 2017-05-31 北京奇虎科技有限公司 The management method and device of a kind of starting up's project
CN102331947B (en) * 2011-10-14 2013-12-11 中科创达软件股份有限公司 Restarting method for Android system
CN103312880A (en) * 2012-03-15 2013-09-18 宇龙计算机通信科技(深圳)有限公司 Terminal and application program data loading method
CN103631387B (en) * 2012-08-27 2018-07-13 百度国际科技(深圳)有限公司 Acquisition methods, input method test method and the device of candidate word display time
CN102929484B (en) * 2012-10-26 2016-08-31 北京奇虎科技有限公司 Browser skin loading display method and device
CN103810042B (en) * 2012-11-07 2017-04-26 中兴通讯股份有限公司 Method and system for adjusting browser parameters
CN103927220A (en) * 2013-01-14 2014-07-16 百度国际科技(深圳)有限公司 Adaptive adjustment method and device for input method in client
CN103164268B (en) * 2013-04-02 2016-04-20 北京奇虎科技有限公司 System optimization method and device
CN103763434A (en) * 2014-01-13 2014-04-30 联想(北京)有限公司 Method for processing information and electronic device
CN104346261B (en) * 2014-03-27 2018-12-11 腾讯科技(深圳)有限公司 A kind of the unloading reminding method and device of application program
CN105302588A (en) * 2014-07-09 2016-02-03 联想移动通信科技有限公司 Terminal application loading method and apparatus and terminal
CN105100197B (en) * 2015-05-29 2018-08-07 小米科技有限责任公司 The method and device of application is installed
CN105975348A (en) * 2016-05-31 2016-09-28 宇龙计算机通信科技(深圳)有限公司 Memory optimization method, optimization device and terminal
CN107015871A (en) * 2016-12-07 2017-08-04 阿里巴巴集团控股有限公司 A kind of data processing method and device
CN110750346B (en) * 2019-10-17 2022-11-15 Oppo(重庆)智能科技有限公司 Task operation optimization method, device, terminal and storage medium
CN111767123B (en) * 2020-05-07 2023-09-01 北京奇艺世纪科技有限公司 Operation optimization method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1282915A (en) * 1999-06-18 2001-02-07 凤凰技术有限公司 Automatic unloading method and device during off-time of application program module
CN1474269A (en) * 2002-08-08 2004-02-11 力捷电脑股份有限公司 Method of program module loading system
CN101133665A (en) * 2004-10-05 2008-02-27 捷讯研究有限公司 Mobile device diagnosis, test, application deployment and update from a web page
CN101227289A (en) * 2008-02-02 2008-07-23 华为技术有限公司 Uniform intimidation managing device and loading method of intimidation defense module
CN101373468A (en) * 2007-08-20 2009-02-25 北京搜狗科技发展有限公司 Method for loading word stock, method for inputting character and input method system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1282915A (en) * 1999-06-18 2001-02-07 凤凰技术有限公司 Automatic unloading method and device during off-time of application program module
CN1474269A (en) * 2002-08-08 2004-02-11 力捷电脑股份有限公司 Method of program module loading system
CN101133665A (en) * 2004-10-05 2008-02-27 捷讯研究有限公司 Mobile device diagnosis, test, application deployment and update from a web page
CN101373468A (en) * 2007-08-20 2009-02-25 北京搜狗科技发展有限公司 Method for loading word stock, method for inputting character and input method system
CN101227289A (en) * 2008-02-02 2008-07-23 华为技术有限公司 Uniform intimidation managing device and loading method of intimidation defense module

Also Published As

Publication number Publication date
CN101996101A (en) 2011-03-30

Similar Documents

Publication Publication Date Title
CN101996101B (en) Method and device for optimizing application program performance
KR101029414B1 (en) Method and apparatus for providing for detecting processor state transitions
US10049327B2 (en) Application characterization for machine learning on heterogeneous core devices
EP3274827B1 (en) Technologies for offloading and on-loading data for processor/coprocessor arrangements
EP3008592B1 (en) Pre-fetching content for service-connected applications
US11500557B2 (en) Systems and methods for energy proportional scheduling
US7181609B2 (en) System and method for accelerated device initialization
CN103309740A (en) Program starting method, device and equipment
US8984200B2 (en) Task scheduling in big and little cores
CN111475373A (en) Service control method and device under micro service, computer equipment and storage medium
US20050076253A1 (en) Method of url-based power management and associated web browsing device
EP2550576B1 (en) Reducing power consumption by masking a process from a processor performance management system
Ju et al. Symphoney: A coordinated sensing flow execution engine for concurrent mobile sensing applications
CN102609276A (en) Method for pre-loading common application program and electronic device thereof
US11930096B2 (en) Systems and methods for rendering interactive web pages
CN109684573B (en) Target picture display method and device, storage medium and electronic equipment
US7444449B2 (en) Method, computer program product and computer system for controlling execution of an interruption routine
WO2020251679A1 (en) Screen reader summary with popular link(s)
US20030177163A1 (en) Microprocessor comprising load monitoring function
US8516482B2 (en) Virtual machine assigning method and storage medium thereof, information processing device having virtual machine environment
CN115617494B (en) Process scheduling method and device in multi-CPU environment, electronic equipment and medium
JP7444262B2 (en) Display control device, display control method, and display control program
EP3134815B1 (en) Memory efficient thread-level speculation
KR20050061167A (en) Apparatus and method for controlling touch sampling rate of smart display
WO2024060867A1 (en) Webpage index information acquisition method and apparatus, computer device, and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant