CN104978203A - Operation parameter loading method and device - Google Patents

Operation parameter loading method and device Download PDF

Info

Publication number
CN104978203A
CN104978203A CN201410132595.6A CN201410132595A CN104978203A CN 104978203 A CN104978203 A CN 104978203A CN 201410132595 A CN201410132595 A CN 201410132595A CN 104978203 A CN104978203 A CN 104978203A
Authority
CN
China
Prior art keywords
setting option
operational factor
user
module
option
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.)
Granted
Application number
CN201410132595.6A
Other languages
Chinese (zh)
Other versions
CN104978203B (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.)
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 CN201410132595.6A priority Critical patent/CN104978203B/en
Publication of CN104978203A publication Critical patent/CN104978203A/en
Application granted granted Critical
Publication of CN104978203B publication Critical patent/CN104978203B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses an operation parameter loading method and device, and belongs to the field of terminals. The method comprises the following steps: in an application operation process, receiving an operation request of an application; according to a preset association relationship, determining a setting item associated with the operation request, wherein the preset association relationship comprises the association relationship between the setting item and the operation request; and obtaining an operation parameter of the setting item, and loading the operation parameter to respond to the operation request. In the application operation process, when a corresponding operation request is received, the operation parameter of the setting item associated with the operation request is loaded, and a situation that the operation parameters of all setting items are loaded when the application is started is avoided, the operation parameters are loaded according to requirements on the premise that the normal operation of the application is not affected, memory consumption caused by one-time loading of the operation parameters of all setting items is avoided, and an influence on system performance by the loading of the operation parameters is lowered.

Description

Operational factor loading method and device
Technical field
The present invention relates to field of terminal, particularly a kind of operational factor loading method and device.
Background technology
Along with the development of Internet technology, a lot of application can provide the several functions such as web displaying, file download, safety detection.For file download function, when download file, application can perform downloads all types of file, filtering video file, any one of filtering in the multiple different operation behaviors such as all types of files, now can provide setting option for this article part download function, user can determine the operational factor of this setting option, this application can according to the operational factor of this setting option, determine the operation behavior performed when download file, when operational factor as determined as user is " all ", this application can download all types of file when download file.
The operational factor of setting option can be kept in registration table, when application start, reads this registration table and resolves, loading the operational factor of setting option in this registration table, according to the operational factor of setting option, to determine performed operation behavior.
Because the number of setting option is a lot, need during application start to load a large amount of data, add memory consumption, have impact on system performance.
Summary of the invention
In order to solve the problem of prior art, embodiments provide a kind of operational factor loading method and device.Described technical scheme is as follows:
First aspect, provide a kind of operational factor loading method, described method comprises:
In application operational process, receive the operation requests to described application;
According to default incidence relation, determine and the setting option that described operation requests associates, described default incidence relation comprises the incidence relation between setting option and operation requests;
Obtain the operational factor of described setting option, and described operational factor is loaded, to respond described operation requests.
Alternatively, in application operational process, before receiving the operation requests to described application, described method comprises:
In described application start process, load the operational factor starting setting option.
Alternatively, in described application start process, before loading the operational factor starting setting option, described method also comprises:
According to the application scenarios of each setting option, determine the setting option that startup setting option associates with operation requests.
Alternatively, after loading described operational factor, described method also comprises:
Monitor the situation of change of the operational factor of described setting option;
When detecting that the operational factor of described setting option changes, upgrade the operational factor of described setting option.
Alternatively, when detecting that the operational factor of described setting option changes, after upgrading the operational factor of described setting option, described method also comprises:
Obtain the user ID of current login;
The operational factor of described user ID and described setting option is sent to server, makes described server correspondence preserve the operational factor of described user ID and described setting option.
Alternatively, setting option is divided into the first setting option and the second setting option, obtains the operational factor of described setting option, and loading is carried out to described operational factor comprise:
Obtain the user ID of current login;
Judge whether described setting option is the first setting option;
When described setting option is the first setting option, send the operational factor of carrying described user ID and described setting option to described server and obtain request, make described server when receiving described operational factor and obtaining request, from the operational factor that described user ID correspondence is preserved, return the operational factor of described setting option;
Receive the operational factor of described setting option.
Alternatively, described method also comprises:
The renewal configuration information that reception server sends, described renewal configuration information comprise the setting option of operational factor to be updated and described setting option upgrade after operational factor;
Judge whether the operational factor of described setting option change occurred;
When change did not occur the operational factor of described setting option, the operational factor of described setting option was replaced with the operational factor after the renewal of described setting option.
Alternatively, before judging whether the operational factor of described setting option change occurred, described method also comprises:
Generate a binary numeral, each corresponding setting option of described binary numeral;
When detecting that the operational factor of described setting option changes, adjust the position that described in described binary numeral, setting option is corresponding;
According to described binary numeral, perform and judge whether the operational factor of described setting option the step changed occurred.
Second aspect, provide a kind of operational factor charger, described device comprises:
Request receiving module, in application operational process, receives the operation requests to described application;
Setting option determination module, preset incidence relation for basis, determine and the setting option that described operation requests associates, described default incidence relation comprises the incidence relation between setting option and operation requests;
Load-on module, for obtaining the operational factor of described setting option, and loads described operational factor, to respond described operation requests.
Alternatively, described device also comprises:
Start-up loading module, in described application start process, loads the operational factor starting setting option.
Alternatively, described device also comprises:
Setting option sort module, for the application scenarios according to each setting option, determines the setting option that startup setting option associates with operation requests.
Alternatively, described device also comprises:
Monitoring module, for monitoring the situation of change of the operational factor of described setting option;
Update module, for when detecting that the operational factor of described setting option changes, upgrades the operational factor of described setting option.
Alternatively, described device also comprises:
First acquisition module, for obtaining the user ID of current login;
Sending module, for the operational factor of described user ID and described setting option is sent to server, makes described server correspondence preserve the operational factor of described user ID and described setting option.
Alternatively, setting option is divided into the first setting option and the second setting option, described load-on module comprises:
Second acquisition module, for obtaining the user ID of current login;
Judge module, for judging whether described setting option is the first setting option;
Parameter acquiring request sending module, for when described setting option is the first setting option, send the operational factor of carrying described user ID and described setting option to described server and obtain request, make described server when receiving described operational factor and obtaining request, from the operational factor that described user ID correspondence is preserved, return the operational factor of described setting option;
Parameter receiver module, for receiving the operational factor of described setting option.
Alternatively, described device also comprises:
Upgrade configuration information receiver module, for the renewal configuration information that reception server sends, described renewal configuration information comprise the setting option of operational factor to be updated and described setting option upgrade after operational factor;
Change judge module, for judging whether the operational factor of described setting option change occurred;
Parameter replacement module, for when change did not occur the operational factor of described setting option, replaced with the operational factor after the renewal of described setting option by the operational factor of described setting option.
Alternatively, described device also comprises:
Numerical generation module, for generating a binary numeral, each corresponding setting option of described binary numeral;
Position adjusting module, for when detecting that the operational factor of described setting option changes, adjusts the position that described in described binary numeral, setting option is corresponding;
Judge execution module, for according to described binary numeral, perform and judge whether the operational factor of described setting option the step changed occurred.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
By in application operational process, when receiving the operation requests to application, just load the operational factor of the setting option associated with this operation requests, and the operational factor of all setting options can not be loaded when this application start, do not affecting under the prerequisite that this application normally runs, achieve the on-demand loading of operational factor, avoid the memory consumption caused due to the operational factor of all setting options of disposable loading, reduce the impact of load operating parameter on system performance.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the process flow diagram of a kind of operational factor loading method that the embodiment of the present invention provides;
Fig. 2 is the process flow diagram of a kind of operational factor loading method that the embodiment of the present invention provides;
Fig. 3 is a kind of operational factor charger structural representation that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 is the process flow diagram of a kind of operational factor loading method that the embodiment of the present invention provides, and see Fig. 1, the method comprises:
101, in application operational process, the operation requests to this application is received.
102, according to presetting incidence relation, determine the setting option associated with this operation requests, this default incidence relation comprises the incidence relation between setting option and operation requests.
103, obtain the operational factor of this setting option, and this operational factor is loaded, to respond this operation requests.
The method that the embodiment of the present invention provides, by in application operational process, when receiving the operation requests to application, just load the operational factor of the setting option associated with this operation requests, and the operational factor of all setting options can not be loaded when this application start, do not affecting under the prerequisite that this application normally runs, achieve the on-demand loading of operational factor, avoid the memory consumption caused due to the operational factor of all setting options of disposable loading, reduce the impact of load operating parameter on system performance.
Alternatively, in application operational process, before receiving the operation requests to this application, the method comprises:
In this application start process, load the operational factor starting setting option.
Alternatively, in this application start process, before loading the operational factor starting setting option, the method also comprises:
According to the application scenarios of each setting option, determine the setting option that startup setting option associates with operation requests.
Alternatively, after loading this operational factor, the method also comprises:
Monitor the situation of change of the operational factor of this setting option;
When detecting that the operational factor of this setting option changes, upgrade the operational factor of this setting option.
Alternatively, when detecting that the operational factor of this setting option changes, after upgrading the operational factor of this setting option, the method also comprises:
Obtain the user ID of current login;
The operational factor of this user ID and this setting option is sent to server, makes this server correspondence preserve the operational factor of this user ID and this setting option.
Alternatively, setting option is divided into the first setting option and the second setting option, obtains the operational factor of this setting option, and loading is carried out to this operational factor comprise:
Obtain the user ID of current login;
Judge whether this setting option is the first setting option;
When this setting option is the first setting option, send the operational factor of carrying this user ID and this setting option to this server and obtain request, make this server when receiving this operational factor and obtaining request, from the operational factor that this user ID correspondence is preserved, return the operational factor of this setting option;
Receive the operational factor of this setting option.
Alternatively, the method also comprises:
The renewal configuration information that reception server sends, this renewal configuration information comprise the setting option of operational factor to be updated and this setting option upgrade after operational factor;
Judge whether the operational factor of this setting option change occurred;
When change did not occur the operational factor of this setting option, the operational factor of this setting option was replaced with the operational factor after the renewal of this setting option.
Alternatively, before judging whether the operational factor of this setting option change occurred, the method also comprises:
Generate a binary numeral, each corresponding setting option of this binary numeral;
When detecting that the operational factor of this setting option changes, adjust the position that in this binary numeral, this setting option is corresponding;
According to this binary numeral, perform and judge whether the operational factor of this setting option the step changed occurred.
Above-mentioned all alternatives, can adopt and combine arbitrarily formation optional embodiment of the present invention, this is no longer going to repeat them.
Fig. 2 is the process flow diagram of a kind of operational factor loading method that the embodiment of the present invention provides, and see Fig. 2, the method comprises:
201, in application start process, terminal loads starts the operational factor of setting option, based on the operational factor of this startup setting option, starts this application.
Wherein, this application is installed on this terminal, can be the operating system, browser client, instant communication client etc. of this terminal, this application has multiple setting option, includes but not limited to homepage setting option, interface skin setting option, starts prompting message setting option, picture shows setting option, file download setting option, safety detection setting option.The embodiment of the present invention does not all limit this application and the plurality of setting option.
For each setting option, this terminal can provide multiple alternative operational factor for this setting option, the operational factor selecting one or more operational factor to give tacit consent to as this setting option from the plurality of alternative operational factor by this terminal, or from the plurality of alternative operational factor, select one or more operational factor as the operational factor of this setting option by user.When the operational factor that the operational factor or user that get this terminal acquiescence are determined, based on this operational factor, the operation requests of this setting option association can be responded.As, download all types of file, filtering video file for file download setting option provides, filter picture file, filter all types of file four alternative operational factors, user can select an operational factor from these four alternative operational factors, if user have selected download all types of file, then this terminal is when receiving the operation requests of download file, can download all types of files that this operation requests is corresponding.
In embodiments of the present invention, during the operational factor of all setting options of disposable loading, a large amount of memory consumptions can be increased, influential system performance, for this reason, the setting option of this application is divided into the setting option starting setting option and associate with operation requests.In this application start process, this terminal only loads the operational factor starting setting option, and the operational factor of the setting option of not load operation request association.
Accordingly, before this step 201 " in application start process; terminal loads starts the operational factor of setting option; based on the operational factor of this startup setting option; start this application ", the method also comprises: according to the application scenarios of each setting option, determines the setting option that startup setting option associates with operation requests.
Wherein, this startup setting option is applied in this application start process, the operational factor of this startup setting option must be loaded in this application start process, if do not load the operational factor of arbitrary startup setting option in this application start process, all may affect the normal startup of this application.And the setting option of this operation requests association is applied in the operational process of this application, without the need to loading the operational factor of the setting option of this operation requests association in this application start process, if do not load the operational factor of the setting option of this operation requests association in this application start process, the normal startup of this application can't be affected.Based on the difference of above-mentioned two kinds of setting options, for each setting option, according to the application scenarios of this setting option, judge whether this setting option is applied in this application start process, if this setting option is applied in this application start process, then using this setting option as startup setting option, if this setting option is applied in this application operational process, then using setting option that this setting option associates as operation requests.
Such as, in the above-mentioned setting option enumerated, this homepage setting option, interface skin setting option, startup prompting message setting option and picture display setting option are all applied in the start-up course of this application, in this application start process, homepage shown when this terminal must be determined to start this application based on the operational factor of homepage setting option, based on the skin that the operational factor determination homepage of interface skin setting option uses, whether display reminding message when determining to start this application based on the operational factor starting prompting message setting option, whether the operational factor based on picture display setting option Shows Picture when determining to start this application.In this application start process, if when not loading the operational factor of arbitrary setting option in above-mentioned four setting options, all may affect the normal startup of this application, therefore, by homepage setting option, interface skin setting option, startup prompting message setting option and picture display setting option are defined as starting setting option, with in this application start process, load the operational factor of above-mentioned four startup setting options, the operational factor of setting option is started based on above-mentioned four, homepage shown when determining to start, the skin that this homepage uses, whether Show Picture and whether display reminding message.
Except above-mentioned four start except setting option, other setting options also shall not be applied in the start-up course of this application.When this file download setting option is applied to download file in this application operational process, when this safety detection setting option is applied to and carries out safety detection in this application operational process.In the start-up course of this application, if do not load the operational factor of these other setting options, can't impact the normal startup of this application, therefore, these other setting options are defined as the setting option of operation requests association, in this application operational process, when this terminal receives the operation requests of arbitrary setting option association, just load the operational factor of the setting option of this operation requests association.
202, when this terminal is when applying in operational process the operation requests received this application, according to default incidence relation, the setting option associated with this operation requests is determined.
Wherein, this default incidence relation comprises the incidence relation between setting option and operation requests, and can be set up in advance by technician, the embodiment of the present invention does not limit this.
For each setting option, in this application operational process, when this terminal receives the operation requests of this setting option association, the operational factor of this setting option must be loaded, otherwise, the normal response to this operation requests will be affected.Such as, the operation requests of this file download setting option association is the operation requests of download file, when this terminal receives the operation requests of download file, the operational factor of this file download setting option must be loaded, to determine the file type allowing to download based on this operational factor.
203, this terminal obtains the operational factor of this setting option, and loads this operational factor, to respond this operation requests.
Alternatively, the operational factor of each setting option is kept in registration table by this terminal, obtains the operational factor of this setting option from this registration table, and loads this operational factor, to respond this operation requests.
Usually, when preserving the operational factor of setting option, ini(initialization can be adopted) file, XML(Extensible Markup Language, extend markup language) file, user-defined format file or registration table.Wherein, the form of ini file is simple, and only include double-layer structure, and be not suitable for the data of storage configuration complexity, security is not high yet.Although XML file can preserve comparatively complicated data, lowly, resolution speed is slow, and the storage space taken is very large for treatment effeciency and storage efficiency.User-defined format file has dirigibility, but needs this application realization to the parsing of this user-defined format file and read-write operation, realizes difficulty very large.Registration table preserves data according to hierarchical structure, and a root key can comprise multiple secondary major key, and each secondary major key can also comprise multiple sub-key, is applicable to the data of storage configuration complexity.Therefore, this terminal can adopt registration table to preserve the operational factor of each setting option.Alternatively, the operation requests that this terminal associates according to each setting option is classified to setting option, utilizes the tree structure of this registration table, operation requests and corresponding setting option is mapped on the major key-sub-bond structure of this registration table.
The embodiment of the present invention, by when receiving this operation requests, just obtaining the operational factor corresponding to setting option of this operation requests association, and loading this operational factor, can not have influence on the normal response to this operation requests, reduce memory consumption simultaneously.Further, for some setting option, in the whole service process of this application, this terminal all may can not receive the operation requests associated with this setting option, then this terminal would not load the operational factor of this setting option, avoid and load unnecessary operational factor, save storage space.
In this application operational process, when this terminal first time receives this operation requests, according to this default incidence relation, determine the setting option associated with this operation requests, obtain the operational factor of this setting option, and this operational factor is loaded, to respond this operation requests.Follow-up when this terminal receives this operation requests again, directly based on the operational factor loaded, respond this operation requests.
204, the situation of change of the operational factor of this this setting option of terminal monitoring, when detecting that the operational factor of this setting option changes, upgrades the operational factor of this setting option.
In embodiments of the present invention, the inlet porting that this application meeting provides each setting option for user, determines the operational factor of this setting option for user.As this terminal is being arranged in menu as each setting option provides menu option, for each menu option, when the clicking operation to this menu option being detected, show the multiple alternative operational factor of setting option corresponding to this menu option, the plurality of alternative operational factor comprises the operational factor of this terminal acquiescence, now, user can revise the operational factor of this setting option.
In this application operational process, the situation of change of the operational factor of this this setting option of terminal monitoring, when this terminal detects that the operational factor of this setting option changes, show that user have modified the operational factor of this setting option, then upgrade the operational factor of this setting option.Particularly, when this terminal detects that the operational factor of this setting option changes, obtain the operational factor of user's amendment, the operational factor of this setting option in this registration table is replaced with the operational factor of user's amendment.
Further, due in the whole service process of this application, this terminal may repeatedly receive this operation requests, if all load the operational factor of this setting option when receiving this operation requests at every turn, can increase memory consumption.Therefore, this operational factor of buffer memory after the operational factor of this this setting option of terminal loads, and monitor the situation of change of this operational factor, when detecting that the operational factor of this setting option changes, upgrade the operational factor of buffer memory.Because user can not revise the operational factor of setting option very frequently, therefore this terminal can't increase too many memory consumption when monitoring the situation of change of this operational factor.
Accordingly, after this step 204, the method also comprises: when this terminal receives this operation requests again, based on the operational factor of this setting option after renewal, responds this operation requests.
Such as, this terminal is when opening webpage, meeting carrying advertisement filters the operational factor of setting option, the advertisement in this webpage is filtered based on this operational factor, if this terminal all will reload once this operational factor when opening webpage at every turn, too many memory consumption can be increased, therefore, this terminal is buffer memory after being loaded with this operational factor, when opening webpage, the operational factor based on this buffer memory carrys out filtering advertisements at every turn, monitors the situation of change of this operational factor simultaneously, when detecting that this operational factor changes, upgrade the operational factor of buffer memory.
205, this terminal obtains the user ID of current login.
In embodiments of the present invention, register under the account mechanism that this user ID provides at the server of this association, this terminal logs in this server based on this user ID, and this user ID can be user account, user's pet name etc., and the embodiment of the present invention does not limit this.In order to retain the operational factor that different user is revised on the terminal, when this terminal have updated the operational factor of this setting option, obtaining the user ID of current login, preserving the operational factor of this user ID and this setting option with correspondence.
Alternatively, this terminal preserves the operational factor of each setting option in the former catalogue of registration table, when this terminal gets the user ID of current login, in registration table with this user ID for root directory, create one group of sub-key of operational factor, for the operational factor of determined each setting option under being kept at this user ID logging status.The operational factor of each setting option preserved in the catalogue of registration table Central Plains is copied to the new sub-key of operational factor created, when detecting that the operational factor of arbitrary setting option changes, operational factor in former catalogue is remained unchanged, upgrades the operational factor of the setting option changed in the sub-key of this operational factor.
Before this step 205, the method also comprises: judge whether this terminal is in logging status, if so, perform this step 205, if not, terminates.
When this terminal is in logging status, obtain the user ID of current login, now just establish the binding relationship between this user ID and operational factor of setting option, when this operational factor changes, think that the user belonging to this user ID have modified this operational factor, then upgrade this operational factor that this user ID is corresponding.When this terminal is not in logging status, without the need to obtaining the user ID of current login, when this operational factor changing, can think and the operational factor that only have modified the preservation of this terminal local only need upgrade the operational factor that this terminal local is preserved.
206, this terminal correspondence preserves the operational factor of this user ID and this renewal.
In actual application, this terminal may log in based on different user ID, then in order to distinguish the determined operational factor of different user, corresponding operational factor of preserving this user ID and the renewal of this setting option, when this terminal follow-up receives this operation requests, according to the user ID logged in when receiving this operation requests, obtain corresponding operational factor.
Further, different terminals also may log in based on identical user ID, then in order to realize the synchronous of operational factor, that avoids user repeats setting, using above-mentioned terminal as first terminal, after this step 205, the further comprising the steps of 207-211 of the method:
207, the operational factor of this user ID and this renewal is sent to server by this first terminal, makes this server correspondence preserve the operational factor of this user ID and this renewal.
For each user ID, the corresponding operational factor of preserving this user ID and this setting option of this server meeting, then when user is based on identical user ID, when different terminals triggers the operation requests associated with this setting option, the operational factor of setting option corresponding for this user ID can be sent to different terminals by this server, make each terminal can when receiving this operation requests, obtain the operational factor of this setting option, this operational factor is loaded, responds this operation requests based on this operational factor.
208, this second terminal is in this application start process, obtains the user ID of current login.Wherein, this second terminal and this first terminal can be same terminal, and can be also different terminals, the present embodiment limit this.
209, when this second terminal receives the operation requests to this application, according to this default incidence relation, determine the setting option that this operation requests associates, judge whether this setting option is the first setting option, if so, perform step 209, if not, perform step 210.
In embodiments of the present invention, preserved operational factor corresponding to this user ID in this server, in order to realize the synchronous of operational factor, this second terminal can send operational factor to this server and obtain request, to obtain operational factor corresponding to this user ID.But, this operational factor is that user determines on this first terminal, might not be applicable to the running environment of this second terminal, be easy to break down when this operational factor is not suitable for the running environment of this second terminal, and this fault is difficult to location, not easily gets rid of.
For this reason, the setting option of this application is divided into the first setting option and the second setting option, wherein, this first setting option associates by force with the use habit of user, with the running environment weak rigidity of terminal, if the operational factor of this first setting option is synchronized to this second terminal from this first terminal, change use habit without the need to user, and this operational factor goes for the running environment of this second terminal.The use habit weak rigidity of this second setting option and user, associate by force with terminal operating environment, if the operational factor of this second setting option is synchronized to this second terminal from this first terminal, then probably there will be the situation of the running environment of operational factor this second terminal inapplicable of this second setting option.Therefore, in order to avoid there is the situation of the running environment of operational factor this second terminal inapplicable, this terminal, when receiving this operation requests, can obtain the operational factor of this first setting option, and can not obtain the operational factor of this second setting option from this server.When then this second terminal receives this operation requests, and send operational factor acquisition request not directly to this server, but first judge whether this setting option is the first setting option.
210, when this setting option is the first setting option, send the operational factor of carrying this user ID and this setting option to this server and obtain request, this server is when receiving this operational factor and obtaining request, from the operational factor that this user ID correspondence is preserved, obtain the operational factor of this setting option, return to this terminal, this terminal receives the operational factor of this setting option, based on the operational factor of this setting option, respond this operation requests.
When this setting option is the first setting option, in order to avoid user changes use habit, this terminal sends the operational factor of carrying this user ID and this setting option to this server and obtains request, to obtain the determined operational factor of user, based on this operational factor, respond this operation requests.
Such as, this interface skin setting option is the first setting option, when user have selected a skin on this first terminal, operational factor corresponding for this skin is sent to this server by this first terminal, when user opens this application in this second terminal, this second terminal can obtain this operational factor from this server, based on this operational factor display interface, the interface of this second terminal demonstration is made to use this skin equally, remain the use habit of user, avoid user and reselect this skin in this second terminal.
211, when this setting option is the second setting option, from the registration table of this second terminal, obtain the operational factor of this second setting option, and this operational factor is loaded, to respond this operation requests.
When this setting option is the second setting option, show that this setting option associates by force with the running environment of terminal, then this second terminal does not send this operational factor to this server and obtains request, but from the registration table of this second terminal, obtains the operational factor of this second setting option.Although the synchronous of operational factor can not be realized, the situation occurring inapplicable running environment can be avoided.Due in actual application, user can not pay close attention to all setting options, and only pay close attention to the setting option with the use habit close association of user, the use habit weak rigidity of this second setting option and user, during the operational factor of this second setting option asynchronous, user awareness is very weak, can not make troubles to user.
In addition, still for this terminal, may relate to the renewal of the operational factor of setting option when upgrading the version of this application, this server can send to terminal and upgrade configuration information, this renewal configuration information comprise the setting option of operational factor to be updated and this setting option upgrade after operational factor.Now this terminal according to this renewal configuration information, can upgrade the operational factor of setting option.But, if this setting option was revised by user, once have updated the operational factor of this setting option, just lost the operational factor of user's amendment.In order to retain the operational factor of user's amendment, the further comprising the steps of 212-214 of the method:
212, the renewal configuration information that sends of this terminal reception server, this renewal configuration information comprise the setting option of operational factor to be updated and this setting option upgrade after operational factor.
Particularly, this terminal receives this renewal configuration information, resolves this renewal configuration information, obtain the registration table path at setting option place to be updated, the sub-key name of operational factor claim and this setting option upgrade after the information such as operational factor.
213, whether the operational factor of this this setting option of terminal judges there is change, if so, terminated, and if not, performed step 214.
Alternatively, before this step 213, this terminal generates a binary numeral, each corresponding setting option of this binary numeral; When detecting that the operational factor of this setting option changes, adjust the position that in this binary numeral, this setting option is corresponding; According to this binary numeral, perform and judge whether the operational factor of this setting option the step changed occurred.Further alternatively, each position that this terminal gives tacit consent to this binary numeral is 0, represent that all setting options were not all modified, when detecting that the operational factor first time of this setting option changes, position corresponding for this setting option in this binary numeral is adjusted to 1, showing that this setting option was revised by user, when detecting that the operational factor of this setting option changes again, 1 will be remained in position corresponding to this setting option.When then this terminal receives this renewal configuration information, judge whether the position that in this binary numeral, this setting option is corresponding is 1, if so, show that change occurred the operational factor of this setting option, if not, show that change did not occur the operational factor of this setting option.
214, this terminal the operational factor of this setting option is replaced with this setting option upgrade after operational factor.
Particularly, this terminal claims according to the registration table path at setting option place to be updated and the sub-key name of this operational factor, and the operational factor after being upgraded by this setting option writes the sub-key of this operational factor.When this terminal reloads the operational factor of this setting option, the operational factor of this write can come into force.
In the embodiment of the present invention, when change occurred the operational factor of this setting option, this terminal still retained the operational factor of user's amendment, and can not upgrade operational factor.Only have when change did not occur the operational factor of this setting option, this terminal just can upgrade the operational factor of this setting option.
The method that the embodiment of the present invention provides, by in application operational process, when receiving the operation requests to application, just load the operational factor of the setting option associated with this operation requests, and the operational factor of all setting options can not be loaded when this application start, do not affecting under the prerequisite that this application normally runs, achieve the on-demand loading of operational factor, avoid the memory consumption caused due to the operational factor of all setting options of disposable loading, reduce the impact of load operating parameter on system performance.Further, by corresponding operational factor of preserving user ID and setting option in the server, be convenient to the operational factor that unified management user determines in different terminals, what avoid user repeats setting, and setting option is divided into the first setting option and the second setting option, achieve the Partial synchronization of operational factor, avoid and break down, reduce performance losses.By when receiving renewal configuration information, whether there is change according to the operational factor of this setting option and determining whether upgrading, and remaining the operational factor of user's amendment, improve dirigibility.
Fig. 3 is a kind of operational factor charger structural representation that the embodiment of the present invention provides, and see Fig. 3, this device comprises:
Request receiving module 301, in application operational process, receives the operation requests to this application;
Setting option determination module 302 is connected with request receiving module 301, and preset incidence relation for basis, determine the setting option associated with this operation requests, this default incidence relation comprises the incidence relation between setting option and operation requests;
Load-on module 303 is connected with request receiving module 301 and setting option determination module 302 respectively, for obtaining the operational factor of this setting option, and loads this operational factor, to respond this operation requests.
Alternatively, this device also comprises:
Start-up loading module, in this application start process, loads the operational factor starting setting option.
Alternatively, this device also comprises:
Setting option sort module, for the application scenarios according to each setting option, determines the setting option that startup setting option associates with operation requests.
Alternatively, this device also comprises:
Monitoring module, for monitoring the situation of change of the operational factor of this setting option;
Update module, for when detecting that the operational factor of this setting option changes, upgrades the operational factor of this setting option.
Alternatively, this device also comprises:
First acquisition module, for obtaining the user ID of current login;
Sending module, for the operational factor of this user ID and this setting option is sent to server, makes this server correspondence preserve the operational factor of this user ID and this setting option.
Alternatively, setting option is divided into the first setting option and the second setting option, this load-on module 303 comprises:
Second acquisition module, for obtaining the user ID of current login;
Judge module, for judging whether this setting option is the first setting option;
Parameter acquiring request sending module, for when this setting option is the first setting option, send the operational factor of carrying this user ID and this setting option to this server and obtain request, make this server when receiving this operational factor and obtaining request, from the operational factor that this user ID correspondence is preserved, return the operational factor of this setting option;
Parameter receiver module, for receiving the operational factor of this setting option.
Alternatively, this device also comprises:
Upgrade configuration information receiver module, for the renewal configuration information that reception server sends, this renewal configuration information comprise the setting option of operational factor to be updated and this setting option upgrade after operational factor;
Change judge module, for judging whether the operational factor of this setting option change occurred;
Parameter replacement module, for when change did not occur the operational factor of this setting option, replaced with the operational factor after the renewal of this setting option by the operational factor of this setting option.
Alternatively, this device also comprises:
Numerical generation module, for generating a binary numeral, each corresponding setting option of this binary numeral;
Position adjusting module, for when detecting that the operational factor of this setting option changes, adjusts the position that in this binary numeral, this setting option is corresponding;
Judge execution module, for according to this binary numeral, perform and judge whether the operational factor of this setting option the step changed occurred.
The device that the embodiment of the present invention provides, by in application operational process, when receiving the operation requests to application, just load the operational factor of the setting option associated with this operation requests, and the operational factor of all setting options can not be loaded when this application start, do not affecting under the prerequisite that this application normally runs, achieve the on-demand loading of operational factor, avoid the memory consumption caused due to the operational factor of all setting options of disposable loading, reduce the impact of load operating parameter on system performance.
It should be noted that: the operational factor charger that above-described embodiment provides is when operational factor loads, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, inner structure by terminal is divided into different functional modules, to complete all or part of function described above.In addition, the operational factor charger that above-described embodiment provides and operational factor loading method embodiment belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (16)

1. an operational factor loading method, is characterized in that, described method comprises:
In application operational process, receive the operation requests to described application;
According to default incidence relation, determine and the setting option that described operation requests associates, described default incidence relation comprises the incidence relation between setting option and operation requests;
Obtain the operational factor of described setting option, and described operational factor is loaded, to respond described operation requests.
2. method according to claim 1, is characterized in that, in application operational process, before receiving the operation requests to described application, described method comprises:
In described application start process, load the operational factor starting setting option.
3. method according to claim 2, is characterized in that, in described application start process, before loading the operational factor starting setting option, described method also comprises:
According to the application scenarios of each setting option, determine the setting option that startup setting option associates with operation requests.
4. method according to claim 1, is characterized in that, after loading described operational factor, described method also comprises:
Monitor the situation of change of the operational factor of described setting option;
When detecting that the operational factor of described setting option changes, upgrade the operational factor of described setting option.
5. method according to claim 4, is characterized in that, when detecting that the operational factor of described setting option changes, after upgrading the operational factor of described setting option, described method also comprises:
Obtain the user ID of current login;
The operational factor of described user ID and described setting option is sent to server, makes described server correspondence preserve the operational factor of described user ID and described setting option.
6. method according to claim 5, is characterized in that, setting option is divided into the first setting option and the second setting option, obtains the operational factor of described setting option, and carries out loading to described operational factor and comprise:
Obtain the user ID of current login;
Judge whether described setting option is the first setting option;
When described setting option is the first setting option, send the operational factor of carrying described user ID and described setting option to described server and obtain request, make described server when receiving described operational factor and obtaining request, from the operational factor that described user ID correspondence is preserved, return the operational factor of described setting option;
Receive the operational factor of described setting option.
7. method according to claim 1, is characterized in that, described method also comprises:
The renewal configuration information that reception server sends, described renewal configuration information comprise the setting option of operational factor to be updated and described setting option upgrade after operational factor;
Judge whether the operational factor of described setting option change occurred;
When change did not occur the operational factor of described setting option, the operational factor of described setting option was replaced with the operational factor after the renewal of described setting option.
8. method according to claim 7, is characterized in that, before judging whether the operational factor of described setting option change occurred, described method also comprises:
Generate a binary numeral, each corresponding setting option of described binary numeral;
When detecting that the operational factor of described setting option changes, adjust the position that described in described binary numeral, setting option is corresponding;
According to described binary numeral, perform and judge whether the operational factor of described setting option the step changed occurred.
9. an operational factor charger, is characterized in that, described device comprises:
Request receiving module, in application operational process, receives the operation requests to described application;
Setting option determination module, preset incidence relation for basis, determine and the setting option that described operation requests associates, described default incidence relation comprises the incidence relation between setting option and operation requests;
Load-on module, for obtaining the operational factor of described setting option, and loads described operational factor, to respond described operation requests.
10. device according to claim 9, is characterized in that, described device also comprises:
Start-up loading module, in described application start process, loads the operational factor starting setting option.
11. devices according to claim 10, is characterized in that, described device also comprises:
Setting option sort module, for the application scenarios according to each setting option, determines the setting option that startup setting option associates with operation requests.
12. devices according to claim 9, is characterized in that, described device also comprises:
Monitoring module, for monitoring the situation of change of the operational factor of described setting option;
Update module, for when detecting that the operational factor of described setting option changes, upgrades the operational factor of described setting option.
13. devices according to claim 12, is characterized in that, described device also comprises:
First acquisition module, for obtaining the user ID of current login;
Sending module, for the operational factor of described user ID and described setting option is sent to server, makes described server correspondence preserve the operational factor of described user ID and described setting option.
14. devices according to claim 13, is characterized in that, setting option is divided into the first setting option and the second setting option, described load-on module comprises:
Second acquisition module, for obtaining the user ID of current login;
Judge module, for judging whether described setting option is the first setting option;
Parameter acquiring request sending module, for when described setting option is the first setting option, send the operational factor of carrying described user ID and described setting option to described server and obtain request, make described server when receiving described operational factor and obtaining request, from the operational factor that described user ID correspondence is preserved, return the operational factor of described setting option;
Parameter receiver module, for receiving the operational factor of described setting option.
15. devices according to claim 9, is characterized in that, described device also comprises:
Upgrade configuration information receiver module, for the renewal configuration information that reception server sends, described renewal configuration information comprise the setting option of operational factor to be updated and described setting option upgrade after operational factor;
Change judge module, for judging whether the operational factor of described setting option change occurred;
Parameter replacement module, for when change did not occur the operational factor of described setting option, replaced with the operational factor after the renewal of described setting option by the operational factor of described setting option.
16. devices according to claim 15, is characterized in that, described device also comprises:
Numerical generation module, for generating a binary numeral, each corresponding setting option of described binary numeral;
Position adjusting module, for when detecting that the operational factor of described setting option changes, adjusts the position that described in described binary numeral, setting option is corresponding;
Judge execution module, for according to described binary numeral, perform and judge whether the operational factor of described setting option the step changed occurred.
CN201410132595.6A 2014-04-03 2014-04-03 Operating parameter loading method and device Active CN104978203B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410132595.6A CN104978203B (en) 2014-04-03 2014-04-03 Operating parameter loading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410132595.6A CN104978203B (en) 2014-04-03 2014-04-03 Operating parameter loading method and device

Publications (2)

Publication Number Publication Date
CN104978203A true CN104978203A (en) 2015-10-14
CN104978203B CN104978203B (en) 2019-04-16

Family

ID=54274741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410132595.6A Active CN104978203B (en) 2014-04-03 2014-04-03 Operating parameter loading method and device

Country Status (1)

Country Link
CN (1) CN104978203B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105335167A (en) * 2015-12-09 2016-02-17 浪潮电子信息产业股份有限公司 Method for rapidly optimizing BIOS setting items
CN109274758A (en) * 2018-10-17 2019-01-25 北京潘达互娱科技有限公司 A kind of processing method and calculating equipment of request message
CN112000377A (en) * 2020-07-29 2020-11-27 深圳市智微智能软件开发有限公司 Method, system, equipment and storage medium for quickly modifying default screen parameters
CN112765512A (en) * 2021-01-29 2021-05-07 北京达佳互联信息技术有限公司 Delayed loading detection method and device, electronic equipment, storage medium and product
CN113971052A (en) * 2021-10-26 2022-01-25 腾讯科技(深圳)有限公司 Application running method, device, equipment, storage medium and program product
CN113971052B (en) * 2021-10-26 2024-05-17 腾讯科技(深圳)有限公司 Application running method, device, equipment, storage medium and program product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101859253A (en) * 2010-03-08 2010-10-13 宇龙计算机通信科技(深圳)有限公司 Method and system for customizing applications and displaying application information
CN102541598A (en) * 2011-12-26 2012-07-04 深圳联友科技有限公司 Method and system for dynamically loading component
CN102662713A (en) * 2012-04-12 2012-09-12 腾讯科技(深圳)有限公司 Method, device and terminal for increasing running speed of application programs
CN103019757A (en) * 2011-09-27 2013-04-03 腾讯科技(深圳)有限公司 Method, device and system for synchronizing software among multiple clients

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101859253A (en) * 2010-03-08 2010-10-13 宇龙计算机通信科技(深圳)有限公司 Method and system for customizing applications and displaying application information
CN103019757A (en) * 2011-09-27 2013-04-03 腾讯科技(深圳)有限公司 Method, device and system for synchronizing software among multiple clients
CN102541598A (en) * 2011-12-26 2012-07-04 深圳联友科技有限公司 Method and system for dynamically loading component
CN102662713A (en) * 2012-04-12 2012-09-12 腾讯科技(深圳)有限公司 Method, device and terminal for increasing running speed of application programs

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105335167A (en) * 2015-12-09 2016-02-17 浪潮电子信息产业股份有限公司 Method for rapidly optimizing BIOS setting items
CN109274758A (en) * 2018-10-17 2019-01-25 北京潘达互娱科技有限公司 A kind of processing method and calculating equipment of request message
CN109274758B (en) * 2018-10-17 2021-05-18 北京龙之心科技有限公司 Request message processing method and computing device
CN112000377A (en) * 2020-07-29 2020-11-27 深圳市智微智能软件开发有限公司 Method, system, equipment and storage medium for quickly modifying default screen parameters
CN112765512A (en) * 2021-01-29 2021-05-07 北京达佳互联信息技术有限公司 Delayed loading detection method and device, electronic equipment, storage medium and product
CN113971052A (en) * 2021-10-26 2022-01-25 腾讯科技(深圳)有限公司 Application running method, device, equipment, storage medium and program product
CN113971052B (en) * 2021-10-26 2024-05-17 腾讯科技(深圳)有限公司 Application running method, device, equipment, storage medium and program product

Also Published As

Publication number Publication date
CN104978203B (en) 2019-04-16

Similar Documents

Publication Publication Date Title
CN110908879B (en) Reporting method, reporting device, reporting terminal and recording medium of buried point data
CN104111944B (en) Page processing method and device and page generation method and device
CN104079673B (en) A kind of methods, devices and systems for preventing DNS from kidnapping in application downloading
CN104615466B (en) A kind of cloud platform dispositions method and system
US11842222B2 (en) Using scripts to bootstrap applications with metadata from a template
US20140351807A1 (en) Method and communication device for updating web application
CN102710593B (en) Method, device and system for publishing message in graph mashup
CN107562556B (en) Failure recovery method, recovery device and storage medium
CN105262608B (en) Monitoring method and device for network service
CN107766509B (en) Method and device for static backup of webpage
CN105099739A (en) Plug-in type software deployment method and apparatus, and application server
CN102833350A (en) Processing method and processing device of WebApp updating
WO2020253366A1 (en) Webpage mailbox data crawling method and apparatus, terminal, and storage medium
CN101170675A (en) Method and system for managing J2ME application in network TV system
WO2019051948A1 (en) Method, apparatus, server, and storage medium for processing monitoring data
CN104978203A (en) Operation parameter loading method and device
CN105786839A (en) Application data acquisition method and apparatus
CN106339273A (en) Application program restoration method, terminal and server
CN111966465B (en) Method, system, equipment and medium for modifying host configuration parameters in real time
CN106126283B (en) A kind of method, apparatus and system of product allocation
CN103116545B (en) The upgrade detection method of intelligent terminal and system
CN102137154A (en) Method and device for upgrading customer premise equipment (CPE)
CN107526584B (en) Data access method and device
CN114637549A (en) Data processing method, system and storage medium for service grid-based application
CN105430435A (en) Method and system for pushing video file download in IOS system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant