CN105760199B - A kind of application resource loading method and its equipment - Google Patents
A kind of application resource loading method and its equipment Download PDFInfo
- Publication number
- CN105760199B CN105760199B CN201610099407.3A CN201610099407A CN105760199B CN 105760199 B CN105760199 B CN 105760199B CN 201610099407 A CN201610099407 A CN 201610099407A CN 105760199 B CN105760199 B CN 105760199B
- Authority
- CN
- China
- Prior art keywords
- resource
- application
- type
- application resource
- load
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the present invention discloses a kind of application resource loading method and its equipment, and wherein method includes the following steps: the resource type that application resource to be loaded is obtained in terminal applies, and obtains the corresponding type identification of the resource type;The corresponding list of types of the type identification is obtained in the resource index of the terminal applies, and the resource address mark of the application resource is searched in the list of types;It is identified according to the resource address and obtains and load the application resource.Using the present invention, effectively the application resource of terminal applies can be managed, promote the loading efficiency of application resource.
Description
Technical field
The present invention relates to field of computer technology more particularly to a kind of application resource loading method and its equipment.
Background technique
Each function is generally by installing every terminal applies to realize in mobile phone and apparatus such as computer, such as: game is answered
With, navigation application, social application etc., equipment is while installing these terminal applies often by terminal applies institute at runtime
The application resource (such as: image, label etc.) needed is stored in an application file folder, and in terminal applies operational process from
Application resource is extracted in application file folder to be loaded.However since all application resources are stored in the same practical writing
Part folder in, lack effective resource management, cause application resource load when, system need constantly application file folder in into
Row is a large amount of to be searched, and the loading efficiency of application resource is affected.
Summary of the invention
The embodiment of the present invention provides a kind of application resource loading method and its equipment, can effectively answer terminal applies
It is managed with resource, promotes the loading efficiency of application resource.
First aspect of the embodiment of the present invention provides a kind of application resource loading method, it may include:
The resource type of application resource to be loaded is obtained in terminal applies, and obtains the corresponding class of the resource type
Type mark;
The corresponding list of types of the type identification is obtained in the resource index of the terminal applies, and in the type
The resource address mark of the application resource is searched in list;
It is identified according to the resource address and obtains and load the application resource.
Second aspect of the embodiment of the present invention provides a kind of application resource loading equipemtn, it may include:
Type identification acquiring unit for obtaining the resource type of application resource to be loaded in terminal applies, and obtains
Take the corresponding type identification of the resource type;
Address identifies searching unit, corresponding for obtaining the type identification in the resource index of the terminal applies
List of types, and search in the list of types resource address mark of the application resource;
Resource loading unit, for identifying acquisition according to the resource address and loading the application resource.
In embodiments of the present invention, it by obtaining the resource type of application resource to be loaded in terminal applies, and obtains
The corresponding type identification of the resource type is taken, the corresponding list of types of type identification is obtained in the resource index of terminal applies,
And the resource address mark of application resource is searched in list of types, it is finally identified according to resource address and obtains and load using money
Source.The classification to application resource is realized by resource type, and by the way of resource index, effectively terminal applies are answered
It is managed with resource, realizes the quick positioning to need application resource to be loaded, and then improve the load of application resource
Efficiency.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of application resource loading method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another application resource loading method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of application resource loading equipemtn provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of another application resource loading equipemtn provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another application resource loading equipemtn provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Application resource loading method provided in an embodiment of the present invention can be applied to carry out the application resource of terminal applies
The scene of load, such as: application resource loading equipemtn obtains the resource type of application resource to be loaded in terminal applies, and
The corresponding type identification of the resource type is obtained, the application resource loading equipemtn is in the resource index of the terminal applies
The corresponding list of types of the type identification is obtained, and searches the resource address mark of the application resource in the list of types
Know, the application resource loading equipemtn identifies the scene etc. for obtaining and loading the application resource according to the resource address.It is logical
Classification of the resource type realization to application resource is crossed, and by the way of resource index, effectively the application of terminal applies is provided
Source is managed, and realizes the quick positioning to need application resource to be loaded, and then improve the loading efficiency of application resource.
The present embodiments relate to application resource loading equipemtn may include tablet computer, smart phone, palm PC,
Car-mounted terminal and mobile internet device (MID) etc. have the terminal device of operation terminal applies;The terminal applies can be with
For the application program being installed in the application resource loading equipemtn to execute specific function, such as: game application, navigation are answered
With, social application etc.;The application resource is application content required when running the terminal applies, by taking navigation application as an example,
Its application resource includes at least map resource, navigating resources, user interface resource etc., and the application resource can specifically include:
Picture, label, voice etc..
It is detailed to a kind of application resource loading method progress provided in an embodiment of the present invention below in conjunction with attached drawing 1 and attached drawing 2
It is thin to introduce.
Referring to Figure 1, for the embodiment of the invention provides a kind of flow diagrams of application resource loading method.Such as Fig. 1
It is shown, the embodiment of the present invention the method may include following steps S101- step S103.
S101, obtains the resource type of application resource to be loaded in terminal applies, and obtains the resource type pair
The type identification answered;
Specifically, application resource loading equipemtn can obtain to be added in terminal applies when triggering runs terminal applies
The resource type of the application resource of load, the resource type may include the corresponding operation of resource type and backstage of user interface
Resource type etc., the application resource loading equipemtn obtains the corresponding type identification of the resource type, the type identification
For to the pre-set mark of the resource type, the type identification is preferably type sequence number (Identity, ID).
S102 obtains the corresponding list of types of the type identification in the resource index of the terminal applies, and in institute
State the resource address mark that the application resource is searched in list of types;
Specifically, the application resource loading equipemtn is after obtaining the corresponding type identification of the resource type, Ke Yi
The corresponding list of types of the type identification is obtained in the resource index of the terminal applies, the list of types may include institute
The resource address mark of all application resources under resource type is stated, the resource address mark is preferably application resource storage
Routing information, the resource index may include every type at least one type identification and at least one type identification
Type identifies corresponding list of types, and the resource index can be believed for the index automatically generated after terminal applies installation
Breath.
S103 is identified according to the resource address and is obtained and load the application resource;
Specifically, after the application resource loading equipemtn finds the resource address mark of the application resource, it can be by
It is identified according to the resource address and obtains and load the application resource, it should be noted that in the load of existing application resource,
Since the memory block in used system for loading the application resource is revocable memory block, that is, described answer is loaded
When with resource, the space of the occupied memory block of the application resource can be discharged at once, if there is answering for other terminal applies at this time
When needing to load with resource, be easy to appear space do not release it is congruent due to be formed by memory fragmentation the case where, preferably
, the application resource loading equipemtn before loading the application resource, can pre- first to file completely load memory block, institute
Stating load memory block is the memory block for being fixed for loading the application resource of the terminal applies, by advance to load memory block
Applied, can further improve the loading efficiency of application resource to avoid the residual of memory fragmentation.
In embodiments of the present invention, it by obtaining the resource type of application resource to be loaded in terminal applies, and obtains
The corresponding type identification of the resource type is taken, the corresponding list of types of type identification is obtained in the resource index of terminal applies,
And the resource address mark of application resource is searched in list of types, it is finally identified according to resource address and obtains and load using money
Source.The classification to application resource is realized by resource type, and by the way of resource index, effectively terminal applies are answered
It is managed with resource, realizes the quick positioning to need application resource to be loaded, and then improve the load of application resource
Efficiency;By applying in advance load memory block, application resource can be further improved to avoid the residual of memory fragmentation
Loading efficiency.
Fig. 2 is referred to, for the embodiment of the invention provides the flow diagrams of another application resource loading method.Such as figure
Shown in 2, the embodiment of the present invention the method may include following steps S201- step S209.
S201 obtains the resource type of application resource in terminal applies, and the resource address of the application resource is identified
It stores into the corresponding list of types of the resource type;
S202 generates the money of the terminal applies according to the list of types and the corresponding type identification of the resource type
Source index;
Specifically, after carrying out terminal applies installation, using money in the available terminal applies of application resource loading equipemtn
The resource type in source, and the resource address of application resource mark is stored into list of types corresponding to the resource type
In, the application resource loading equipemtn can generate institute according to the list of types and the corresponding type identification of the resource type
State the resource index of terminal applies.The list of types may include the resource of all application resources under the resource type
Location mark, the resource address mark are preferably the routing information of application resource storage.
S203 obtains the corresponding resource loading frequency of application resource of terminal applies;
Specifically, the corresponding resource load frequency of the application resource of the available terminal applies of application resource loading equipemtn
Rate, the resource loading frequency can be load number of the application resource in history loading procedure, the application resource
Loading equipemtn can record the corresponding resource loading frequency of the application resource.
S204 stores the application resource to preparatory when the resource loading frequency belongs to the first load priority
In the Installed System Memory block of application;
S205 stores the application resource to preset when the resource loading frequency belongs to the second load priority
In cache list;
Specifically, indicating the application resource for height when the resource loading frequency belongs to the first load priority
The resource of frequency usage, the application resource loading equipemtn can store the application resource to the Installed System Memory of pre- first to file
In block, to carry out quick calling to the application resource for belonging to the first load priority, when the resource loading frequency belongs to second
When loading priority, that is, indicate that the application resource is the resource of middle frequency usage, the application resource loading equipemtn can incite somebody to action
The application resource is stored into preset cache list, will belong to the application resource rapidly extracting of the second load priority to institute
It states and is called in Installed System Memory block, when the resource loading frequency belongs to third load priority, that is, indicate the application
Resource is the resource that low frequency uses, and the application resource loading equipemtn can not make preextraction processing to the application resource.
The Installed System Memory block and the load memory block are the memory block in system.
It is understood that the rank for being superior to the second load priority of the first load priority and institute
State the rank of third load priority, the rank for being superior to the third load priority of the second load priority;
The first load priority, the second load priority and third load priority can be preset by setpoint frequency
It is divided, such as: when the resource loading frequency is greater than first frequency threshold value, determine that the resource loading frequency belongs to first
Load priority;When the resource loading frequency is greater than second frequency threshold value and is less than or equal to first frequency threshold value, institute is determined
It states resource loading frequency and belongs to the second load priority;When the resource loading frequency is less than or equal to second frequency threshold value, really
The fixed resource loading frequency belongs to third load priority, and wherein first frequency threshold value is greater than second frequency threshold value.
In embodiments of the present invention, the resource address mark of the application resource can be by the corresponding money of the application resource
Source loading frequency is determined that the storage region that priority indication is loaded according to belonging to the resource loading frequency carries out dynamic and repairs
Change.
S206, obtains the resource type of application resource to be loaded in terminal applies, and obtains the resource type pair
The type identification answered;
Specifically, application resource loading equipemtn can obtain to be added in terminal applies when triggering runs terminal applies
The resource type of the application resource of load, the resource type may include the corresponding operation of resource type and backstage of user interface
Resource type etc., the application resource loading equipemtn obtains the corresponding type identification of the resource type, the type identification
For to the pre-set mark of the resource type, the type identification is preferably type ID.
S207 obtains the corresponding list of types of the type identification in the resource index of the terminal applies, and in institute
State the resource address mark that the application resource is searched in list of types;
Specifically, the application resource loading equipemtn is after obtaining the corresponding type identification of the resource type, Ke Yi
Obtain the corresponding list of types of the type identification in the resource index of the terminal applies, the resource index may include to
Each type identifies corresponding list of types in a kind of few type identification and at least one type identification.
S208 is identified according to the resource address and is obtained and load the application resource;
Specifically, after the application resource loading equipemtn finds the resource address mark of the application resource, it can be by
It is identified according to the resource address and obtains and load the application resource, it should be noted that in the load of existing application resource,
Since the memory block in used system for loading the application resource is revocable memory block, that is, described answer is loaded
When with resource, the space of the occupied memory block of the application resource can be discharged at once, if there is answering for other terminal applies at this time
When needing to load with resource, be easy to appear space do not release it is congruent due to be formed by memory fragmentation the case where, preferably
, the application resource loading equipemtn before loading the application resource, can pre- first to file completely load memory block, institute
Stating load memory block is the memory block for being fixed for loading the application resource of the terminal applies, by advance to load memory block
Applied, can further improve the loading efficiency of application resource to avoid the residual of memory fragmentation.
Further, when the resource loading frequency belongs to the first load priority, the application resource loading equipemtn
It can be identified according to the resource address and obtain the application resource in the Installed System Memory block, and the application resource is added
It is loaded onto the load memory block of pre- first to file, the loading processing of application resource is executed by the load memory block;
When the resource loading frequency belongs to the second load priority, the application resource loading equipemtn can be according to institute
It states resource address mark and obtains the application resource in the preset cache list, and the application resource is loaded onto described
It loads in memory block, the loading processing of application resource is executed by the load memory block;
When the resource loading frequency belongs to third load priority, the application resource loading equipemtn can be according to institute
It states resource address mark and obtains the application resource in the resource folder of the terminal applies, and the application resource is added
It is loaded onto the load memory block, the loading processing of application resource is executed by the load memory block.
S209 updates the corresponding resource loading frequency of the application resource after loading the application resource;
Specifically, the application resource loading equipemtn can update the application after the completion of application resource load
The corresponding resource loading frequency of resource, such as: 1 etc. is added to the corresponding resource loading frequency of the application resource.Preferably, more
After the new resource loading frequency, it can be transferred to and execute step S203.
In embodiments of the present invention, it by obtaining the resource type of application resource to be loaded in terminal applies, and obtains
The corresponding type identification of the resource type is taken, the corresponding list of types of type identification is obtained in the resource index of terminal applies,
And the resource address mark of application resource is searched in list of types, it is finally identified according to resource address and obtains and load using money
Source.The classification to application resource is realized by resource type, and by the way of resource index, effectively terminal applies are answered
It is managed with resource, realizes the quick positioning to need application resource to be loaded, and then improve the load of application resource
Efficiency;By applying in advance load memory block, application resource can be further improved to avoid the residual of memory fragmentation
Loading efficiency;By obtaining the resource loading frequency of application resource, the frequency of use height selection storage based on application resource
Into Installed System Memory block or preset cache list, the preloading procedure of the application resource used medium-high frequency is realized, is improved
To the intelligence that application resource is loaded, the loading efficiency of application resource is further improved.
Below in conjunction with attached drawing 3 and attached drawing 4, it is situated between in detail to application resource loading equipemtn provided in an embodiment of the present invention
It continues.It should be noted that attached drawing 3 and attached application resource loading equipemtn shown in Fig. 4, for executing shown in Fig. 1 and Fig. 2 of the present invention
The method of embodiment, for ease of description, only parts related to embodiments of the present invention are shown, and particular technique details does not disclose
, please refer to Fig. 1 of the present invention and embodiment shown in Fig. 2.
Fig. 3 is referred to, for the embodiment of the invention provides a kind of structural schematic diagrams of application resource loading equipemtn.Such as Fig. 3
Shown, the application resource loading equipemtn 1 of the embodiment of the present invention may include: type identification acquiring unit 11, address mark
Searching unit 12 and resource loading unit 13.
Type identification acquiring unit 11, for obtaining the resource type of application resource to be loaded in terminal applies, and
Obtain the corresponding type identification of the resource type;
In the specific implementation, the type identification acquiring unit 11 can be in terminal applies when triggering runs terminal applies
The middle resource type for obtaining application resource to be loaded, the resource type may include user interface resource type and after
The resource type etc. that platform is accordingly run, the type identification acquiring unit 11 obtain the corresponding type identification of the resource type,
The type identification is to the pre-set mark of the resource type, and the type identification is preferably type ID.
Address identifies searching unit 12, corresponding for obtaining the type identification in the resource index of the terminal applies
List of types, and search in the list of types resource address mark of the application resource;
In the specific implementation, the address mark searching unit 12 obtains the resource in the type identification acquiring unit 11
After the corresponding type identification of type, the corresponding type of the type identification can be obtained in the resource index of the terminal applies
List, the list of types may include the resource address mark of all application resources under the resource type, the resource
Address mark be preferably application resource storage routing information, the resource index may include at least one type identification and
Each type identifies corresponding list of types in at least one type identification, and the resource index can be in the terminal
Using the index information automatically generated after installation.
Resource loading unit 13, for identifying acquisition according to the resource address and loading the application resource;
In the specific implementation, after the address mark searching unit 12 finds the resource address mark of the application resource,
The resource loading unit 13 can identify according to the resource address and obtain and load the application resource, need to illustrate
It is, in the load of existing application resource, since the memory block in used system for loading the application resource is non-
Fixed memory block when having loaded the application resource, can discharge the sky of the occupied memory block of the application resource at once
Between, if there is the application resource of other terminal applies to need to load at this time, be easy to appear space do not release it is congruent due to
The case where being formed by memory fragmentation, it is preferred that the resource loading unit 13, can be pre- before loading the application resource
First to file completely loads memory block, the load memory block be fixed for loading the terminal applies application resource it is interior
Counterfoil can further improve application resource by applying in advance load memory block to avoid the residual of memory fragmentation
Loading efficiency.
In embodiments of the present invention, it by obtaining the resource type of application resource to be loaded in terminal applies, and obtains
The corresponding type identification of the resource type is taken, the corresponding list of types of type identification is obtained in the resource index of terminal applies,
And the resource address mark of application resource is searched in list of types, it is finally identified according to resource address and obtains and load using money
Source.The classification to application resource is realized by resource type, and by the way of resource index, effectively terminal applies are answered
It is managed with resource, realizes the quick positioning to need application resource to be loaded, and then improve the load of application resource
Efficiency;By applying in advance load memory block, application resource can be further improved to avoid the residual of memory fragmentation
Loading efficiency.
Fig. 4 is referred to, for the embodiment of the invention provides the structural schematic diagrams of another application resource loading equipemtn.Such as figure
Shown in 4, the application resource loading equipemtn 1 of the embodiment of the present invention may include: type identification acquiring unit 11, address mark
Searching unit 12, resource loading unit 13, mark storage unit 14, index generation unit 15, frequency acquisition unit 16, resource are deposited
Storage unit 17 and frequency updating unit 18.
Storage unit 14 is identified, for obtaining the resource type of application resource in terminal applies, and by the application resource
Resource address mark store into the corresponding list of types of the resource type;
Generation unit 15 is indexed, for generating institute according to the list of types and the corresponding type identification of the resource type
State the resource index of terminal applies;
In the specific implementation, after carrying out terminal applies installation, in the available terminal applies of the mark storage unit 14
The resource type of application resource, and the resource address of application resource mark is stored into type corresponding to the resource type
In list, the index generation unit 15 can be generated according to the list of types and the corresponding type identification of the resource type
The resource index of the terminal applies.The list of types may include the resource of all application resources under the resource type
Address mark, the resource address mark are preferably the routing information of application resource storage.
Frequency acquisition unit 16, the corresponding resource loading frequency of application resource for obtaining terminal applies;
In the specific implementation, the corresponding resource load of the application resource of the available terminal applies of the frequency acquisition unit 16
Frequency, the resource loading frequency can be load number of the application resource in history loading procedure, and the frequency obtains
Take unit 16 that can record to the corresponding resource loading frequency of the application resource.
Resource storage unit 17, for when the resource loading frequency belongs to the first load priority, by the application
Resource is stored into the Installed System Memory block of pre- first to file;
The resource storage unit 17 is also used to when the resource loading frequency belongs to the second load priority, by institute
Application resource is stated to store into preset cache list;
In the specific implementation, indicating the application resource when the resource loading frequency belongs to the first load priority
For the resource that high-frequency uses, the resource storage unit 17 can be stored the application resource to the system of pre- first to file
In counterfoil, to carry out quick calling to the application resource for belonging to the first load priority, when the resource loading frequency belongs to the
When two load priority, that is, indicate that the application resource is the resource of middle frequency usage, the resource storage unit 17 can incite somebody to action
The application resource is stored into preset cache list, will belong to the application resource rapidly extracting of the second load priority to institute
It states and is called in Installed System Memory block, when the resource loading frequency belongs to third load priority, that is, indicate the application
Resource is the resource that low frequency uses, and the application resource loading equipemtn 1 can not make preextraction processing to the application resource.
The Installed System Memory block and the load memory block are the memory block in system.
It is understood that the rank for being superior to the second load priority of the first load priority and institute
State the rank of third load priority, the rank for being superior to the third load priority of the second load priority;
The first load priority, the second load priority and third load priority can be preset by setpoint frequency
It is divided, such as: when the resource loading frequency is greater than first frequency threshold value, determine that the resource loading frequency belongs to first
Load priority;When the resource loading frequency is greater than second frequency threshold value and is less than or equal to first frequency threshold value, institute is determined
It states resource loading frequency and belongs to the second load priority;When the resource loading frequency is less than or equal to second frequency threshold value, really
The fixed resource loading frequency belongs to third load priority, and wherein first frequency threshold value is greater than second frequency threshold value.
In embodiments of the present invention, the resource address mark of the application resource can be by the corresponding money of the application resource
Source loading frequency is determined that the storage region that priority indication is loaded according to belonging to the resource loading frequency carries out dynamic and repairs
Change.
Type identification acquiring unit 11, for obtaining the resource type of application resource to be loaded in terminal applies, and
Obtain the corresponding type identification of the resource type;
In the specific implementation, the type identification acquiring unit 11 can be in terminal applies when triggering runs terminal applies
The middle resource type for obtaining application resource to be loaded, the resource type may include user interface resource type and after
The resource type etc. that platform is accordingly run, the type identification acquiring unit 11 obtain the corresponding type identification of the resource type,
The type identification is to the pre-set mark of the resource type, and the type identification is preferably type ID.
Address identifies searching unit 12, corresponding for obtaining the type identification in the resource index of the terminal applies
List of types, and search in the list of types resource address mark of the application resource;
In the specific implementation, the address mark searching unit 12 obtains the resource in the type identification acquiring unit 11
After the corresponding type identification of type, the corresponding type of the type identification can be obtained in the resource index of the terminal applies
List, the resource index may include each type mark at least one type identification and at least one type identification
Know corresponding list of types.
Resource loading unit 13, for identifying acquisition according to the resource address and loading the application resource;
In the specific implementation, after the address mark searching unit 12 finds the resource address mark of the application resource,
The resource loading unit 13 can identify according to the resource address and obtain and load the application resource, need to illustrate
It is, in the load of existing application resource, since the memory block in used system for loading the application resource is non-
Fixed memory block when having loaded the application resource, can discharge the sky of the occupied memory block of the application resource at once
Between, if there is the application resource of other terminal applies to need to load at this time, be easy to appear space do not release it is congruent due to
The case where being formed by memory fragmentation, it is preferred that the resource loading unit 13, can be pre- before loading the application resource
First to file completely loads memory block, the load memory block be fixed for loading the terminal applies application resource it is interior
Counterfoil can further improve application resource by applying in advance load memory block to avoid the residual of memory fragmentation
Loading efficiency.
Further, when the resource loading frequency belongs to the first load priority, the resource loading unit 13 can
To obtain the application resource in the Installed System Memory block according to resource address mark, and the application resource is loaded
Into the load memory block of pre- first to file, the loading processing of application resource is executed by the load memory block;
When the resource loading frequency belongs to the second load priority, the resource loading unit 13 can be according to described
Resource address mark obtains the application resource in the preset cache list, and the application resource is loaded onto described add
It carries in memory block, the loading processing of application resource is executed by the load memory block;
When the resource loading frequency belongs to third load priority, the resource loading unit 13 can be according to described
Resource address mark obtains the application resource in the resource folder of the terminal applies, and the application resource is loaded
To in the load memory block, the loading processing of application resource is executed by the load memory block.
Frequency updating unit 18, for updating the corresponding resource of the application resource and adding after loading the application resource
Carrier frequency rate;
In the specific implementation, the frequency updating unit 18 can update described answer after the completion of application resource load
With the corresponding resource loading frequency of resource, such as: 1 etc. is added to the corresponding resource loading frequency of the application resource.Preferably, exist
After updating the resource loading frequency, the frequency acquisition unit 16 can be notified to execute the application resource pair for obtaining terminal applies
The resource loading frequency answered.
In embodiments of the present invention, it by obtaining the resource type of application resource to be loaded in terminal applies, and obtains
The corresponding type identification of the resource type is taken, the corresponding list of types of type identification is obtained in the resource index of terminal applies,
And the resource address mark of application resource is searched in list of types, it is finally identified according to resource address and obtains and load using money
Source.The classification to application resource is realized by resource type, and by the way of resource index, effectively terminal applies are answered
It is managed with resource, realizes the quick positioning to need application resource to be loaded, and then improve the load of application resource
Efficiency;By applying in advance load memory block, application resource can be further improved to avoid the residual of memory fragmentation
Loading efficiency;By obtaining the resource loading frequency of application resource, the frequency of use height selection storage based on application resource
Into Installed System Memory block or preset cache list, the preloading procedure of the application resource used medium-high frequency is realized, is improved
To the intelligence that application resource is loaded, the loading efficiency of application resource is further improved.
Fig. 5 is referred to, for the embodiment of the invention provides the structural schematic diagrams of another application resource loading equipemtn.Such as figure
Shown in 5, the application resource loading equipemtn 1000 may include: at least one processor 1001, such as CPU, at least one net
Network interface 1004, user interface 1003, memory 1005, at least one communication bus 1002.Wherein, communication bus 1002 is used for
Realize the connection communication between these components.Wherein, user interface 1003 may include display screen (Display), keyboard
(Keyboard), optional user interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 is optional
May include standard wireline interface and wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory,
It is also possible to non-labile memory (non-volatile memory), for example, at least a magnetic disk storage.Memory
1005 optionally can also be that at least one is located remotely from the storage device of aforementioned processor 1001.As shown in figure 5, as one kind
It may include operating system, network communication module, Subscriber Interface Module SIM and money in the memory 1005 of computer storage medium
Source loading application programs.
In application resource loading equipemtn 1000 shown in Fig. 5, user interface 1003 is mainly used for providing input for user
Interface, obtain user input data;And processor 1001 can be used for that the resource stored in memory 1005 is called to load
Application program, and specifically execute following operation:
The resource type of application resource to be loaded is obtained in terminal applies, and obtains the corresponding class of the resource type
Type mark;
The corresponding list of types of the type identification is obtained in the resource index of the terminal applies, and in the type
The resource address mark of the application resource is searched in list;
It is identified according to the resource address and obtains and load the application resource.
In one embodiment, the processor 1001 obtains application resource to be loaded in execution in terminal applies
Before resource type, following operation is also executed:
Obtain terminal applies in application resource resource type, and by the resource address of the application resource mark store to
In the corresponding list of types of the resource type;
The resource rope of the terminal applies is generated according to the list of types and the corresponding type identification of the resource type
Draw.
In one embodiment, the processor 1001 obtains application resource to be loaded in execution in terminal applies
Before resource type, following operation is also executed:
Obtain the corresponding resource loading frequency of application resource of terminal applies;
When the resource loading frequency belongs to the first load priority, the application resource is stored to pre- first to file
In Installed System Memory block;
When the resource loading frequency belongs to the second load priority, the application resource is stored to preset caching and is arranged
In table.
In one embodiment, the processor 1001 is being executed according to the acquisition of resource address mark and is being loaded described
It is specific to execute following operation when application resource:
When the resource loading frequency belongs to the first load priority, identify according to the resource address in the system
The application resource is obtained in memory block, and the application resource is loaded onto the load memory block of pre- first to file;
When the resource loading frequency belongs to the second load priority, identify according to the resource address described preset
The application resource is obtained in cache list, and the application resource is loaded onto the load memory block;
When the resource loading frequency belongs to third load priority, identify according to the resource address in the terminal
The application resource is obtained in the resource folder of application, and the application resource is loaded onto the load memory block;
Wherein, the rank for being superior to the second load priority of the first load priority and the third add
Carry the rank of priority, the rank for being superior to the third load priority of the second load priority.
In one embodiment, the processor 1001 also executes following operation:
After loading the application resource, the corresponding resource loading frequency of the application resource is updated.
In embodiments of the present invention, it by obtaining the resource type of application resource to be loaded in terminal applies, and obtains
The corresponding type identification of the resource type is taken, the corresponding list of types of type identification is obtained in the resource index of terminal applies,
And the resource address mark of application resource is searched in list of types, it is finally identified according to resource address and obtains and load using money
Source.The classification to application resource is realized by resource type, and by the way of resource index, effectively terminal applies are answered
It is managed with resource, realizes the quick positioning to need application resource to be loaded, and then improve the load of application resource
Efficiency;By applying in advance load memory block, application resource can be further improved to avoid the residual of memory fragmentation
Loading efficiency;By obtaining the resource loading frequency of application resource, the frequency of use height selection storage based on application resource
Into Installed System Memory block or preset cache list, the preloading procedure of the application resource used medium-high frequency is realized, is improved
To the intelligence that application resource is loaded, the loading efficiency of application resource is further improved.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly
It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.
Claims (6)
1. a kind of application resource loading method characterized by comprising
Obtain the corresponding resource loading frequency of application resource of terminal applies;
When the resource loading frequency belongs to the first load priority, the application resource is stored to the system of pre- first to file
In memory block;
When the resource loading frequency belongs to the second load priority, the application resource is stored to preset cache list
In;
The resource type of application resource to be loaded is obtained in the terminal applies, and obtains the corresponding class of the resource type
Type mark, the resource type includes the resource type of user interface and the resource type of running background;
The corresponding list of types of the type identification is obtained in the resource index of the terminal applies, and in the list of types
The middle resource address mark for searching the application resource, the list of types includes all application resources under the resource type
Resource address mark;
When the resource loading frequency belongs to the first load priority, identify according to the resource address in the Installed System Memory
The application resource is obtained in block, and the application resource is loaded onto the load memory block of pre- first to file;
When the resource loading frequency belongs to the second load priority, identify according to the resource address in the preset caching
The application resource is obtained in list, and the application resource is loaded onto the load memory block;
When the resource loading frequency belongs to third load priority, identify according to the resource address in the terminal applies
Resource folder in obtain the application resource, and the application resource is loaded onto the load memory block;
Wherein, the rank for being superior to the second load priority of the first load priority and third load are excellent
The rank of first grade, the rank for being superior to the third load priority of the second load priority;The load memory
Block is for the fixed application resource for loading the terminal applies.
2. the method according to claim 1, wherein obtaining application resource to be loaded in the terminal applies
Resource type before, further includes:
The resource type of application resource in terminal applies is obtained, and the resource address of application resource mark is stored to described
In the corresponding list of types of resource type;
The resource index of the terminal applies is generated according to the list of types and the corresponding type identification of the resource type.
3. the method according to claim 1, wherein further include:
After loading the application resource, the corresponding resource loading frequency of the application resource is updated.
4. a kind of application resource loading equipemtn characterized by comprising
Frequency acquisition unit, the corresponding resource loading frequency of application resource for obtaining terminal applies;
Resource storage unit, for when the resource loading frequency belongs to the first load priority, the application resource to be deposited
Storage is into the Installed System Memory block of pre- first to file;
The resource storage unit is also used to when the resource loading frequency belongs to the second load priority, by the application
Resource is stored into preset cache list;
Type identification acquiring unit for obtaining the resource type of application resource to be loaded in the terminal applies, and obtains
The corresponding type identification of the resource type is taken, the resource type includes the resource type of user interface and the money of running background
Source Type;
Address identifies searching unit, for obtaining the corresponding type of the type identification in the resource index of the terminal applies
List, and the resource address mark of the application resource is searched in the list of types, the list of types includes the money
The resource address mark of all application resources under Source Type;
Resource loading unit, for when the resource loading frequency belongs to the first load priority, according to the resource address
Mark obtains the application resource in the Installed System Memory block, and the application resource is loaded onto the load of pre- first to file
In counterfoil;When the resource loading frequency belongs to the second load priority, identify according to the resource address described preset
The application resource is obtained in cache list, and the application resource is loaded onto the load memory block;When the resource
When loading frequency belongs to third load priority, according to resource address mark in the resource folder of the terminal applies
The application resource is obtained, and the application resource is loaded onto the load memory block;
Wherein, the rank for being superior to the second load priority of the first load priority and third load are excellent
The rank of first grade, the rank for being superior to the third load priority of the second load priority;The load memory
Block is for the fixed application resource for loading the terminal applies.
5. equipment according to claim 4, which is characterized in that further include:
Storage unit is identified, for obtaining the resource type of application resource in terminal applies, and by the resource of the application resource
Address mark is stored into the corresponding list of types of the resource type;
Generation unit is indexed, for generating the terminal according to the list of types and the corresponding type identification of the resource type
The resource index of application.
6. equipment according to claim 4, which is characterized in that further include:
Frequency updating unit, for updating the corresponding resource loading frequency of the application resource after loading the application resource.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610099407.3A CN105760199B (en) | 2016-02-23 | 2016-02-23 | A kind of application resource loading method and its equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610099407.3A CN105760199B (en) | 2016-02-23 | 2016-02-23 | A kind of application resource loading method and its equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105760199A CN105760199A (en) | 2016-07-13 |
CN105760199B true CN105760199B (en) | 2019-07-16 |
Family
ID=56330312
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610099407.3A Active CN105760199B (en) | 2016-02-23 | 2016-02-23 | A kind of application resource loading method and its equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105760199B (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106708575B (en) * | 2016-12-20 | 2021-05-04 | 北京安云世纪科技有限公司 | Mobile terminal and method and device for loading and running application thereof |
CN108306913A (en) * | 2017-01-12 | 2018-07-20 | 中兴通讯股份有限公司 | A kind of data processing method, device, computer readable storage medium and terminal |
CN107220186A (en) * | 2017-07-03 | 2017-09-29 | 福建新和兴信息技术有限公司 | The buffer memory management method and terminal of business object in android system |
CN107357929B (en) * | 2017-07-27 | 2020-06-23 | Oppo广东移动通信有限公司 | File reading method, mobile terminal and readable storage medium |
CN110463162B (en) | 2017-09-19 | 2021-01-05 | 华为技术有限公司 | Application deployment method, device and system |
CN109165052B (en) * | 2018-08-08 | 2021-10-26 | 腾讯科技(深圳)有限公司 | Interactive processing method and device of application scene, terminal, system and storage medium |
CN110543337A (en) * | 2019-09-02 | 2019-12-06 | 联想(北京)有限公司 | application program loading processing method, electronic device and medium |
CN111198729B (en) * | 2020-01-10 | 2021-07-20 | 腾讯科技(深圳)有限公司 | Static resource loading method and device, computer equipment and storage medium |
CN111596966A (en) * | 2020-04-27 | 2020-08-28 | 五八有限公司 | Sub-application loading method and device |
CN114217872A (en) * | 2021-12-15 | 2022-03-22 | 北京鲸鲮信息系统技术有限公司 | Application program starting method and device, electronic equipment and storage medium |
CN115292020B (en) * | 2022-09-26 | 2022-12-20 | 腾讯科技(深圳)有限公司 | Data processing method, device, equipment and medium |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101316226B (en) * | 2007-06-01 | 2011-11-02 | 阿里巴巴集团控股有限公司 | Method, device and system for acquiring resources |
CN101788906B (en) * | 2010-01-21 | 2015-06-10 | 中兴通讯股份有限公司 | Resource management method and system thereof |
CN101799788B (en) * | 2010-03-23 | 2014-06-11 | 中兴通讯股份有限公司 | Level-to-level administration method and system of storage resources |
CN101853215B (en) * | 2010-06-01 | 2012-05-02 | 恒生电子股份有限公司 | Memory allocation method and device |
CN102117248A (en) * | 2011-03-09 | 2011-07-06 | 浪潮(北京)电子信息产业有限公司 | Caching system and method for caching data in caching system |
CN103150257A (en) * | 2013-02-28 | 2013-06-12 | 天脉聚源(北京)传媒科技有限公司 | Memory management method and memory management device |
CN104572303B (en) * | 2015-01-08 | 2018-09-14 | 游道易(北京)科技有限公司 | Application resource management and calling device, method and application resource manage system |
CN105117180B (en) * | 2015-09-28 | 2018-08-17 | 北京联想核芯科技有限公司 | A kind of date storage method and device and solid state disk |
-
2016
- 2016-02-23 CN CN201610099407.3A patent/CN105760199B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN105760199A (en) | 2016-07-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105760199B (en) | A kind of application resource loading method and its equipment | |
CN107832100B (en) | APK plug-in loading method and terminal thereof | |
CN110413282B (en) | Redundant resource processing method, device, equipment and storage medium | |
CN109829287A (en) | Api interface permission access method, equipment, storage medium and device | |
CN110389812B (en) | Method, apparatus, and computer-readable storage medium for managing virtual machines | |
CN111258680B (en) | Resource loading method and device, storage medium and electronic device | |
US20140310332A1 (en) | Method for accessing plural cloud storages, electronic apparatus and non-transitory computer readable medium | |
CN104899049A (en) | File deletion method and device | |
CN103716346A (en) | Management method and device of application on android handset client | |
CN104572845A (en) | File distribution method and device, equipment and system | |
CN106034138A (en) | Remote service calling method and remote service calling device | |
CN113961510B (en) | File processing method, device, equipment and storage medium | |
CN105045928A (en) | To-be-cleaned data display method and device and electronic equipment | |
US9104567B2 (en) | Memory-leak identification | |
CN111026331A (en) | Request response method, device, equipment and computer readable storage medium | |
CN112860412B (en) | Service data processing method and device, electronic equipment and storage medium | |
CN110652728A (en) | Game resource management method and device, electronic equipment and storage medium | |
CN108205559B (en) | Data management method and equipment thereof | |
US7778660B2 (en) | Mobile communications terminal, information transmitting system and information receiving method | |
CN108446144B (en) | Application program starting method and device, terminal and storage medium | |
CN107450859B (en) | Method and device for reading file data | |
CN111767417A (en) | Application picture management method, device, equipment and storage medium | |
CN103618961A (en) | Method, system and browser for displaying video title | |
CN112100553A (en) | Webpage configuration method and device, electronic equipment and storage medium | |
CN109522014B (en) | Algorithm processing method based on new product development, electronic device and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20230705 Address after: 518057 Tencent Building, No. 1 High-tech Zone, Nanshan District, Shenzhen City, Guangdong Province, 35 floors Patentee after: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd. Patentee after: TENCENT CLOUD COMPUTING (BEIJING) Co.,Ltd. Address before: 2, 518000, East 403 room, SEG science and Technology Park, Zhenxing Road, Shenzhen, Guangdong, Futian District Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd. |
|
TR01 | Transfer of patent right |