CN105760199A - Method and equipment for loading application resource - Google Patents

Method and equipment for loading application resource Download PDF

Info

Publication number
CN105760199A
CN105760199A CN201610099407.3A CN201610099407A CN105760199A CN 105760199 A CN105760199 A CN 105760199A CN 201610099407 A CN201610099407 A CN 201610099407A CN 105760199 A CN105760199 A CN 105760199A
Authority
CN
China
Prior art keywords
resource
loading
application
application resource
type
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
CN201610099407.3A
Other languages
Chinese (zh)
Other versions
CN105760199B (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 CN201610099407.3A priority Critical patent/CN105760199B/en
Publication of CN105760199A publication Critical patent/CN105760199A/en
Application granted granted Critical
Publication of CN105760199B publication Critical patent/CN105760199B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Abstract

The embodiment of the invention discloses a method and equipment for loading an application resource.The method includes the following steps that the type of the application resource to be loaded is acquired from a terminal application, and a type identifier corresponding to the type is acquired; a type list corresponding to the type identifier is acquired from a resource index of the terminal application; and the type list is searched for a resource address identifier of the application resource; the application resource is acquired and loaded according to the resource address identifier.By means of the method and equipment, the application resource of the terminal application can be effectively managed, and the loading efficiency of the application resource is improved.

Description

A kind of application resource loading method and equipment thereof
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of application resource loading method and equipment thereof.
Background technology
In mobile phone and apparatus such as computer, each function is generally by installing every terminal applies to realize, such as: game application, navigation application, social networking application etc., the application resource (such as: image, label etc.) that terminal applies is operationally required is often stored in an application file folder by equipment while installing these terminal applies, and from this application file folder, extraction application resource loads in terminal applies running.All leaving in same application file folder yet with all of application resource, lack effective resource management, cause that application resource is when loading, system needs constantly to carry out substantial amounts of lookup in application file presss from both sides, and have impact on the loading efficiency of application resource.
Summary of the invention
The embodiment of the present invention provides a kind of application resource loading method and equipment thereof, it is possible to the effective application resource to terminal applies is managed, and promotes the loading efficiency of application resource.
Embodiment of the present invention first aspect provides a kind of application resource loading method, it may include:
Terminal applies obtains the resource type of application resource to be loaded, and obtains the type identification that described resource type is corresponding;
The resource index of described terminal applies obtains the list of types that described type identification is corresponding, and in described list of types, searches the resource address mark of described application resource;
Obtain according to described resource address mark and load described application resource.
Embodiment of the present invention second aspect 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 the type identification that described resource type is corresponding;
Address designation searches unit, for obtaining the list of types that described type identification is corresponding in the resource index of described terminal applies, and searches the resource address mark of described application resource in described list of types;
Resource loading unit, for obtaining according to described resource address mark and load described application resource.
In embodiments of the present invention, by obtaining the resource type of application resource to be loaded in terminal applies, and obtain the type identification that this resource type is corresponding, the resource index of terminal applies obtains the list of types that type identification is corresponding, and the resource address searching application resource in list of types identifies, finally obtain according to resource address mark and load application resource.Realize classification to application resource by resource type, and adopt the mode of resource index, effectively the application resource of terminal applies is managed, it is achieved that to the quick location needing the application resource loaded, and then improve the loading efficiency of application resource.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, 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 premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of application resource loading method that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of the another kind of application resource loading method that the embodiment of the present invention provides;
Fig. 3 is the structural representation of a kind of application resource loading equipemtn that the embodiment of the present invention provides;
Fig. 4 is the structural representation of the another kind of application resource loading equipemtn that the embodiment of the present invention provides;
Fig. 5 is the structural representation of another application resource loading equipemtn that the embodiment of the present invention provides.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
The application resource loading method that the embodiment of the present invention provides can apply to the scene that the application resource of terminal applies is loaded, such as: application resource loading equipemtn obtains the resource type of application resource to be loaded in terminal applies, and obtain the type identification that described resource type is corresponding, described application resource loading equipemtn obtains the list of types that described type identification is corresponding in the resource index of described terminal applies, and in described list of types, search the resource address mark of described application resource, described application resource loading equipemtn obtains according to described resource address mark and loads the scene etc. of described application resource.Realize classification to application resource by resource type, and adopt the mode of resource index, effectively the application resource of terminal applies is managed, it is achieved that to the quick location needing the application resource loaded, and then improve the loading efficiency of application resource.
The application resource loading equipemtn that the present embodiments relate to can include panel computer, smart mobile phone, palm PC, car-mounted terminal and mobile internet device (MID) etc. and possess the terminal unit running terminal applies;Described terminal applies can for be installed in described application resource loading equipemtn to perform the application program of specific function, for instance: game application, navigation application, social networking application etc.;The application content that described application resource is required when being run described terminal applies, for navigation application, its application resource at least includes map resource, navigating resources, user interface resource etc., and described application resource specifically may include that picture, label, voice etc..
Below in conjunction with accompanying drawing 1 and accompanying drawing 2, a kind of application resource loading method that the embodiment of the present invention is provided describes in detail.
Refer to Fig. 1, for embodiments providing the schematic flow sheet of a kind of application resource loading method.As it is shown in figure 1, the described method of the embodiment of the present invention may comprise steps of S101-step S103.
S101, obtains the resource type of application resource to be loaded in terminal applies, and obtains the type identification that described resource type is corresponding;
Concrete, when triggering operation terminal applies, application resource loading equipemtn can obtain the resource type of application resource to be loaded in terminal applies, the resource type etc. that described resource type can include the resource type of user interface and backstage is run accordingly, described application resource loading equipemtn obtains the type identification that described resource type is corresponding, described type identification is the mark that described resource type is pre-set, described type identification is preferably type sequence number (Identity, ID).
S102, obtains the list of types that described type identification is corresponding in the resource index of described terminal applies, and searches the resource address mark of described application resource in described list of types;
Concrete, described application resource loading equipemtn is after obtaining the type identification that described resource type is corresponding, the list of types that described type identification is corresponding can be obtained in the resource index of described terminal applies, described list of types can include the resource address mark of all application resources under described resource type, described resource address mark is preferably the routing information of application resource storage, described resource index can comprise the list of types that at least one type identification and described at least one type identification, each type mark is corresponding, described resource index can be the index information automatically generated after described terminal applies is installed.
S103, obtains according to described resource address mark and loads described application resource;
nullConcrete,After described application resource loading equipemtn finds the resource address mark of described application resource,Can obtain according to described resource address mark and load described application resource,It should be noted that,In existing application resource loads,Owing to the system that uses being revocable memory block for loading the memory block of described application resource,When namely having loaded described application resource,Can at once discharge the space of memory block shared by described application resource,If the application resource now having other terminal applies needs to load,Easily occur owing to space does not release the situation of the memory fragmentation that congruence reason is formed,Preferably,Described application resource loading equipemtn is before loading described application resource,Can first to file is complete in advance loading memory block,Described loading memory block is the memory block being fixed for loading the application resource of described terminal applies,By in advance loading memory block being applied for,The residual of memory fragmentation can be avoided,Improve the loading efficiency of application resource further.
In embodiments of the present invention, by obtaining the resource type of application resource to be loaded in terminal applies, and obtain the type identification that this resource type is corresponding, the resource index of terminal applies obtains the list of types that type identification is corresponding, and the resource address searching application resource in list of types identifies, finally obtain according to resource address mark and load application resource.Realize classification to application resource by resource type, and adopt the mode of resource index, effectively the application resource of terminal applies is managed, it is achieved that to the quick location needing the application resource loaded, and then improve the loading efficiency of application resource;By in advance loading memory block being applied for, it is possible to avoid the residual of memory fragmentation, improve the loading efficiency of application resource further.
Refer to Fig. 2, for embodiments providing the schematic flow sheet of another kind of application resource loading method.As in figure 2 it is shown, the described method of the embodiment of the present invention may comprise steps of S201-step S209.
S201, obtains the resource type of application resource in terminal applies, and is identified by the resource address of described application resource and store to list of types corresponding to described resource type;
S202, generates the resource index of described terminal applies according to the type identification that described list of types is corresponding with described resource type;
Concrete, after carrying out terminal applies installation, application resource loading equipemtn can obtain the resource type of application resource in terminal applies, and the resource address of described application resource identified store to list of types corresponding to described resource type, described application resource loading equipemtn can generate the resource index of described terminal applies according to the type identification that described list of types is corresponding with described resource type.Described list of types can include the resource address mark of all application resources under described resource type, and described resource address mark is preferably the routing information of application resource storage.
S203, obtains the resource loading frequency that the application resource of terminal applies is corresponding;
Concrete, the resource loading frequency that application resource that described application resource loading equipemtn can obtain terminal applies is corresponding, described resource loading frequency can be described application resource loading number of times in history loading procedure, and the resource loading frequency that described application resource is corresponding can be recorded by described application resource loading equipemtn.
S204, when described resource loading frequency belongs to the first loading priority, stores described application resource to the Installed System Memory block of pre-first to file;
S205, when described resource loading frequency belongs to the second loading priority, stores described application resource to preset cache list;
nullConcrete,When described resource loading frequency belongs to the first loading priority,Namely represent that described application resource is the resource that altofrequency uses,Described application resource can be stored to the Installed System Memory block of pre-first to file by described application resource loading equipemtn,So that the application resource belonging to the first loading priority is carried out quick calling,When described resource loading frequency belongs to the second loading priority,Namely represent that described application resource is the resource that medium frequency uses,Described application resource can be stored to preset cache list by described application resource loading equipemtn,So that the application resource rapid extraction belonging to the second loading priority is called to described Installed System Memory block,When described resource loading frequency belongs to the 3rd loading priority,Namely represent that described application resource is the resource that low frequency uses,Described application resource can not be done preextraction and process by described application resource loading equipemtn.Described Installed System Memory block and described loading memory block are the memory block in system.
It is understood that the described first the described second rank loading priority and the described 3rd that is superior to loading priority loads the rank of priority, described second loads the rank being superior to described 3rd loading priority of priority;Described first loads priority, described second loading priority and described 3rd loading priority can divide by setpoint frequency is preset, such as: when described resource loading frequency is more than first frequency threshold value, it is determined that described resource loading frequency belongs to the first loading priority;When described resource loading frequency is more than second frequency threshold value and less than or equal to first frequency threshold value, it is determined that described resource loading frequency belongs to the second loading priority;When described resource loading frequency is less than or equal to second frequency threshold value, it is determined that described resource loading frequency belongs to the 3rd loading priority, and wherein first frequency threshold value is more than second frequency threshold value.
In embodiments of the present invention, the resource address mark of described application resource can be determined by the resource loading frequency that described application resource is corresponding, and the memory area namely loading priority instruction belonging to described resource loading frequency is dynamically revised.
S206, obtains the resource type of application resource to be loaded in terminal applies, and obtains the type identification that described resource type is corresponding;
Concrete, when triggering operation terminal applies, application resource loading equipemtn can obtain the resource type of application resource to be loaded in terminal applies, the resource type etc. that described resource type can include the resource type of user interface and backstage is run accordingly, described application resource loading equipemtn obtains the type identification that described resource type is corresponding, described type identification is the mark that described resource type is pre-set, and described type identification is preferably type ID.
S207, obtains the list of types that described type identification is corresponding in the resource index of described terminal applies, and searches the resource address mark of described application resource in described list of types;
Concrete, described application resource loading equipemtn is after obtaining the type identification that described resource type is corresponding, can obtaining the list of types that described type identification is corresponding in the resource index of described terminal applies, described resource index can comprise the list of types that at least one type identification and described at least one type identification, each type mark is corresponding.
S208, obtains according to described resource address mark and loads described application resource;
nullConcrete,After described application resource loading equipemtn finds the resource address mark of described application resource,Can obtain according to described resource address mark and load described application resource,It should be noted that,In existing application resource loads,Owing to the system that uses being revocable memory block for loading the memory block of described application resource,When namely having loaded described application resource,Can at once discharge the space of memory block shared by described application resource,If the application resource now having other terminal applies needs to load,Easily occur owing to space does not release the situation of the memory fragmentation that congruence reason is formed,Preferably,Described application resource loading equipemtn is before loading described application resource,Can first to file is complete in advance loading memory block,Described loading memory block is the memory block being fixed for loading the application resource of described terminal applies,By in advance loading memory block being applied for,The residual of memory fragmentation can be avoided,Improve the loading efficiency of application resource further.
Further, when described resource loading frequency belongs to the first loading priority, described application resource loading equipemtn can obtain described application resource according to described resource address mark in described Installed System Memory block, and described application resource is loaded in the loading memory block of pre-first to file, described loading memory block perform the loading processing of application resource;
When described resource loading frequency belongs to the second loading priority, described application resource loading equipemtn can obtain described application resource according to described resource address mark in described preset cache list, and described application resource is loaded in described loading memory block, described loading memory block perform the loading processing of application resource;
When described resource loading frequency belongs to the 3rd loading priority, described application resource loading equipemtn can obtain described application resource according to described resource address mark in the resource folder of described terminal applies, and described application resource is loaded in described loading memory block, described loading memory block perform the loading processing of application resource.
S209, after loading described application resource, updates the resource loading frequency that described application resource is corresponding;
Concrete, after described application resource has loaded, described application resource loading equipemtn can update the resource loading frequency that described application resource is corresponding, for instance: the resource loading frequency that described application resource is corresponding is added 1.Preferably, after updating described resource loading frequency, it is possible to proceed to execution step S203.
In embodiments of the present invention, by obtaining the resource type of application resource to be loaded in terminal applies, and obtain the type identification that this resource type is corresponding, the resource index of terminal applies obtains the list of types that type identification is corresponding, and the resource address searching application resource in list of types identifies, finally obtain according to resource address mark and load application resource.Realize classification to application resource by resource type, and adopt the mode of resource index, effectively the application resource of terminal applies is managed, it is achieved that to the quick location needing the application resource loaded, and then improve the loading efficiency of application resource;By in advance loading memory block being applied for, it is possible to avoid the residual of memory fragmentation, improve the loading efficiency of application resource further;By obtaining the resource loading frequency of application resource, use frequency height based on application resource selects to store to Installed System Memory block or preset cache list, achieve the preloading procedure to the application resource that medium-high frequency uses, improve application resource is loaded intelligent, improve the loading efficiency of application resource further.
Below in conjunction with accompanying drawing 3 and accompanying drawing 4, the application resource loading equipemtn that the embodiment of the present invention is provided describes in detail.It should be noted that, application resource loading equipemtn shown in accompanying drawing 3 and accompanying drawing 4, for the method performing Fig. 1 of the present invention and embodiment illustrated in fig. 2, for the ease of explanation, illustrate only the part relevant to the embodiment of the present invention, concrete ins and outs do not disclose, and refer to the embodiment shown in Fig. 1 and Fig. 2 of the present invention.
Refer to Fig. 3, for embodiments providing the structural representation of a kind of application resource loading equipemtn.As it is shown on figure 3, the described application resource loading equipemtn 1 of the embodiment of the present invention may include that type identification acquiring unit 11, address designation search 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 obtains the type identification that described resource type is corresponding;
In implementing, when triggering operation terminal applies, described type identification acquiring unit 11 can obtain the resource type of application resource to be loaded in terminal applies, the resource type etc. that described resource type can include the resource type of user interface and backstage is run accordingly, described type identification acquiring unit 11 obtains the type identification that described resource type is corresponding, described type identification is the mark that described resource type is pre-set, and described type identification is preferably type ID.
Address designation searches unit 12, for obtaining the list of types that described type identification is corresponding in the resource index of described terminal applies, and searches the resource address mark of described application resource in described list of types;
In implementing, described address designation searches unit 12 after described type identification acquiring unit 11 obtains the type identification that described resource type is corresponding, the list of types that described type identification is corresponding can be obtained in the resource index of described terminal applies, described list of types can include the resource address mark of all application resources under described resource type, described resource address mark is preferably the routing information of application resource storage, described resource index can comprise the list of types that at least one type identification and described at least one type identification, each type mark is corresponding, described resource index can be the index information automatically generated after described terminal applies is installed.
Resource loading unit 13, for obtaining according to described resource address mark and load described application resource;
nullIn implementing,After described address designation searches the resource address mark that unit 12 finds described application resource,Described resource loading unit 13 can obtain according to described resource address mark and load described application resource,It should be noted that,In existing application resource loads,Owing to the system that uses being revocable memory block for loading the memory block of described application resource,When namely having loaded described application resource,Can at once discharge the space of memory block shared by described application resource,If the application resource now having other terminal applies needs to load,Easily occur owing to space does not release the situation of the memory fragmentation that congruence reason is formed,Preferably,Described resource loading unit 13 is before loading described application resource,Can first to file is complete in advance loading memory block,Described loading memory block is the memory block being fixed for loading the application resource of described terminal applies,By in advance loading memory block being applied for,The residual of memory fragmentation can be avoided,Improve the loading efficiency of application resource further.
In embodiments of the present invention, by obtaining the resource type of application resource to be loaded in terminal applies, and obtain the type identification that this resource type is corresponding, the resource index of terminal applies obtains the list of types that type identification is corresponding, and the resource address searching application resource in list of types identifies, finally obtain according to resource address mark and load application resource.Realize classification to application resource by resource type, and adopt the mode of resource index, effectively the application resource of terminal applies is managed, it is achieved that to the quick location needing the application resource loaded, and then improve the loading efficiency of application resource;By in advance loading memory block being applied for, it is possible to avoid the residual of memory fragmentation, improve the loading efficiency of application resource further.
Refer to Fig. 4, for embodiments providing the structural representation of another kind of application resource loading equipemtn.As shown in Figure 4, the described application resource loading equipemtn 1 of the embodiment of the present invention may include that type identification acquiring unit 11, address designation search unit 12, resource loading unit 13, mark memory element 14, index generation unit 15, frequency acquisition unit 16, resource memory element 17 and frequency updating block 18.
Mark memory element 14, for obtaining the resource type of application resource in terminal applies, and identifies the resource address of described application resource and stores to list of types corresponding to described resource type;
Index generates unit 15, generates the resource index of described terminal applies for the type identification corresponding with described resource type according to described list of types;
In implementing, after carrying out terminal applies installation, described mark memory element 14 can obtain the resource type of application resource in terminal applies, and the resource address of described application resource identified store to list of types corresponding to described resource type, described index generates unit 15 can generate the resource index of described terminal applies according to the type identification that described list of types is corresponding with described resource type.Described list of types can include the resource address mark of all application resources under described resource type, and described resource address mark is preferably the routing information of application resource storage.
Frequency acquisition unit 16, the resource loading frequency corresponding for obtaining the application resource of terminal applies;
In implementing, the resource loading frequency that application resource that described frequency acquisition unit 16 can obtain terminal applies is corresponding, described resource loading frequency can be described application resource loading number of times in history loading procedure, and the resource loading frequency that described application resource is corresponding can be recorded by described frequency acquisition unit 16.
Resource memory element 17, for when described resource loading frequency belongs to the first loading priority, storing described application resource to the Installed System Memory block of pre-first to file;
Described resource memory element 17, is additionally operable to, when described resource loading frequency belongs to the second loading priority, be stored to preset cache list by described application resource;
nullIn implementing,When described resource loading frequency belongs to the first loading priority,Namely represent that described application resource is the resource that altofrequency uses,Described application resource can be stored to the Installed System Memory block of pre-first to file by described resource memory element 17,So that the application resource belonging to the first loading priority is carried out quick calling,When described resource loading frequency belongs to the second loading priority,Namely represent that described application resource is the resource that medium frequency uses,Described application resource can be stored to preset cache list by described resource memory element 17,So that the application resource rapid extraction belonging to the second loading priority is called to described Installed System Memory block,When described resource loading frequency belongs to the 3rd loading priority,Namely represent that described application resource is the resource that low frequency uses,Described application resource can not be done preextraction and process by described application resource loading equipemtn 1.Described Installed System Memory block and described loading memory block are the memory block in system.
It is understood that the described first the described second rank loading priority and the described 3rd that is superior to loading priority loads the rank of priority, described second loads the rank being superior to described 3rd loading priority of priority;Described first loads priority, described second loading priority and described 3rd loading priority can divide by setpoint frequency is preset, such as: when described resource loading frequency is more than first frequency threshold value, it is determined that described resource loading frequency belongs to the first loading priority;When described resource loading frequency is more than second frequency threshold value and less than or equal to first frequency threshold value, it is determined that described resource loading frequency belongs to the second loading priority;When described resource loading frequency is less than or equal to second frequency threshold value, it is determined that described resource loading frequency belongs to the 3rd loading priority, and wherein first frequency threshold value is more than second frequency threshold value.
In embodiments of the present invention, the resource address mark of described application resource can be determined by the resource loading frequency that described application resource is corresponding, and the memory area namely loading priority instruction belonging to described resource loading frequency is dynamically revised.
Type identification acquiring unit 11, for obtaining the resource type of application resource to be loaded in terminal applies, and obtains the type identification that described resource type is corresponding;
In implementing, when triggering operation terminal applies, described type identification acquiring unit 11 can obtain the resource type of application resource to be loaded in terminal applies, the resource type etc. that described resource type can include the resource type of user interface and backstage is run accordingly, described type identification acquiring unit 11 obtains the type identification that described resource type is corresponding, described type identification is the mark that described resource type is pre-set, and described type identification is preferably type ID.
Address designation searches unit 12, for obtaining the list of types that described type identification is corresponding in the resource index of described terminal applies, and searches the resource address mark of described application resource in described list of types;
In implementing, described address designation searches unit 12 after described type identification acquiring unit 11 obtains the type identification that described resource type is corresponding, can obtaining the list of types that described type identification is corresponding in the resource index of described terminal applies, described resource index can comprise the list of types that at least one type identification and described at least one type identification, each type mark is corresponding.
Resource loading unit 13, for obtaining according to described resource address mark and load described application resource;
nullIn implementing,After described address designation searches the resource address mark that unit 12 finds described application resource,Described resource loading unit 13 can obtain according to described resource address mark and load described application resource,It should be noted that,In existing application resource loads,Owing to the system that uses being revocable memory block for loading the memory block of described application resource,When namely having loaded described application resource,Can at once discharge the space of memory block shared by described application resource,If the application resource now having other terminal applies needs to load,Easily occur owing to space does not release the situation of the memory fragmentation that congruence reason is formed,Preferably,Described resource loading unit 13 is before loading described application resource,Can first to file is complete in advance loading memory block,Described loading memory block is the memory block being fixed for loading the application resource of described terminal applies,By in advance loading memory block being applied for,The residual of memory fragmentation can be avoided,Improve the loading efficiency of application resource further.
Further, when described resource loading frequency belongs to the first loading priority, described resource loading unit 13 can obtain described application resource according to described resource address mark in described Installed System Memory block, and described application resource is loaded in the loading memory block of pre-first to file, described loading memory block perform the loading processing of application resource;
When described resource loading frequency belongs to the second loading priority, described resource loading unit 13 can obtain described application resource according to described resource address mark in described preset cache list, and described application resource is loaded in described loading memory block, described loading memory block perform the loading processing of application resource;
When described resource loading frequency belongs to the 3rd loading priority, described resource loading unit 13 can obtain described application resource according to described resource address mark in the resource folder of described terminal applies, and described application resource is loaded in described loading memory block, described loading memory block perform the loading processing of application resource.
Frequency updating block 18, for, after loading described application resource, updating the resource loading frequency that described application resource is corresponding;
In implementing, after described application resource has loaded, described frequency updating block 18 can update the resource loading frequency that described application resource is corresponding, for instance: the resource loading frequency that described application resource is corresponding is added 1.Preferably, after updating described resource loading frequency, it is possible to notify the resource loading frequency that the application resource of described frequency acquisition unit 16 execution acquisition terminal applies is corresponding.
In embodiments of the present invention, by obtaining the resource type of application resource to be loaded in terminal applies, and obtain the type identification that this resource type is corresponding, the resource index of terminal applies obtains the list of types that type identification is corresponding, and the resource address searching application resource in list of types identifies, finally obtain according to resource address mark and load application resource.Realize classification to application resource by resource type, and adopt the mode of resource index, effectively the application resource of terminal applies is managed, it is achieved that to the quick location needing the application resource loaded, and then improve the loading efficiency of application resource;By in advance loading memory block being applied for, it is possible to avoid the residual of memory fragmentation, improve the loading efficiency of application resource further;By obtaining the resource loading frequency of application resource, use frequency height based on application resource selects to store to Installed System Memory block or preset cache list, achieve the preloading procedure to the application resource that medium-high frequency uses, improve application resource is loaded intelligent, improve the loading efficiency of application resource further.
Refer to Fig. 5, for embodiments providing the structural representation of another application resource loading equipemtn.As it is shown in figure 5, described application resource loading equipemtn 1000 may include that at least one processor 1001, for instance CPU, at least one network interface 1004, user interface 1003, memorizer 1005, at least one communication bus 1002.Wherein, communication bus 1002 is for realizing the connection communication between these assemblies.Wherein, user interface 1003 can include display screen (Display), keyboard (Keyboard), and optional user interface 1003 can also include the wireline interface of standard, wave point.Network interface 1004 optionally can include the wireline interface of standard, wave point (such as WI-FI interface).Memorizer 1005 can be high-speed RAM memorizer, it is also possible to be non-labile memorizer (non-volatilememory), for instance at least one disk memory.Memorizer 1005 optionally can also is that at least one is located remotely from the storage device of aforementioned processor 1001.As it is shown in figure 5, as the memorizer 1005 of a kind of computer-readable storage medium can include operating system, network communication module, Subscriber Interface Module SIM and resource loading application programs.
In the application resource loading equipemtn 1000 shown in Fig. 5, user interface 1003 is mainly used in providing the user the interface of input, obtains the data of user's input;And processor 1001 may be used for calling the resource loading application programs of storage in memorizer 1005, and specifically perform following operation:
Terminal applies obtains the resource type of application resource to be loaded, and obtains the type identification that described resource type is corresponding;
The resource index of described terminal applies obtains the list of types that described type identification is corresponding, and in described list of types, searches the resource address mark of described application resource;
Obtain according to described resource address mark and load described application resource.
In one embodiment, described processor 1001 obtains in terminal applies in execution before the resource type of application resource to be loaded, also performs following operation:
Obtain the resource type of application resource in terminal applies, and the resource address of described application resource is identified store to list of types corresponding to described resource type;
The resource index of described terminal applies is generated according to the type identification that described list of types is corresponding with described resource type.
In one embodiment, described processor 1001 obtains in terminal applies in execution before the resource type of application resource to be loaded, also performs following operation:
Obtain the resource loading frequency that the application resource of terminal applies is corresponding;
When described resource loading frequency belongs to the first loading priority, described application resource is stored to the Installed System Memory block of pre-first to file;
When described resource loading frequency belongs to the second loading priority, described application resource is stored to preset cache list.
In one embodiment, described processor 1001, when performing obtain according to described resource address mark and load described application resource, specifically performs following operation:
When described resource loading frequency belongs to the first loading priority, in described Installed System Memory block, obtain described application resource according to described resource address mark, and described application resource is loaded in the loading memory block of pre-first to file;
When described resource loading frequency belongs to the second loading priority, in described preset cache list, obtain described application resource according to described resource address mark, and described application resource is loaded in described loading memory block;
When described resource loading frequency belongs to the 3rd loading priority, in the resource folder of described terminal applies, obtain described application resource according to described resource address mark, and described application resource is loaded in described loading memory block;
Wherein, the described first the described second rank loading priority and the described 3rd that is superior to loading priority loads the rank of priority, and described second loads the rank being superior to described 3rd loading priority of priority.
In one embodiment, described processor 1001 also performs following operation:
After loading described application resource, update the resource loading frequency that described application resource is corresponding.
In embodiments of the present invention, by obtaining the resource type of application resource to be loaded in terminal applies, and obtain the type identification that this resource type is corresponding, the resource index of terminal applies obtains the list of types that type identification is corresponding, and the resource address searching application resource in list of types identifies, finally obtain according to resource address mark and load application resource.Realize classification to application resource by resource type, and adopt the mode of resource index, effectively the application resource of terminal applies is managed, it is achieved that to the quick location needing the application resource loaded, and then improve the loading efficiency of application resource;By in advance loading memory block being applied for, it is possible to avoid the residual of memory fragmentation, improve the loading efficiency of application resource further;By obtaining the resource loading frequency of application resource, use frequency height based on application resource selects to store to Installed System Memory block or preset cache list, achieve the preloading procedure to the application resource that medium-high frequency uses, improve application resource is loaded intelligent, improve the loading efficiency of application resource further.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can be by the hardware that computer program carrys out instruction relevant to complete, described program can be stored in a computer read/write memory medium, this program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc..
Above disclosed it is only present pre-ferred embodiments, certainly can not limit the interest field of the present invention, the equivalent variations therefore made according to the claims in the present invention with this, still belong to the scope that the present invention contains.

Claims (10)

1. an application resource loading method, it is characterised in that including:
Terminal applies obtains the resource type of application resource to be loaded, and obtains the type identification that described resource type is corresponding;
The resource index of described terminal applies obtains the list of types that described type identification is corresponding, and in described list of types, searches the resource address mark of described application resource;
Obtain according to described resource address mark and load described application resource.
2. method according to claim 1, it is characterised in that before the described resource type obtaining application resource to be loaded in terminal applies, also include:
Obtain the resource type of application resource in terminal applies, and the resource address of described application resource is identified store to list of types corresponding to described resource type;
The resource index of described terminal applies is generated according to the type identification that described list of types is corresponding with described resource type.
3. method according to claim 1, it is characterised in that before the described resource type obtaining application resource to be loaded in terminal applies, also include:
Obtain the resource loading frequency that the application resource of terminal applies is corresponding;
When described resource loading frequency belongs to the first loading priority, described application resource is stored to the Installed System Memory block of pre-first to file;
When described resource loading frequency belongs to the second loading priority, described application resource is stored to preset cache list.
4. method according to claim 3, it is characterised in that described mark according to described resource address obtains and load described application resource, including:
When described resource loading frequency belongs to the first loading priority, in described Installed System Memory block, obtain described application resource according to described resource address mark, and described application resource is loaded in the loading memory block of pre-first to file;
When described resource loading frequency belongs to the second loading priority, in described preset cache list, obtain described application resource according to described resource address mark, and described application resource is loaded in described loading memory block;
When described resource loading frequency belongs to the 3rd loading priority, in the resource folder of described terminal applies, obtain described application resource according to described resource address mark, and described application resource is loaded in described loading memory block;
Wherein, the described first the described second rank loading priority and the described 3rd that is superior to loading priority loads the rank of priority, and described second loads the rank being superior to described 3rd loading priority of priority.
5. the method according to claim 3 or 4, it is characterised in that also include:
After loading described application resource, update the resource loading frequency that described application resource is corresponding.
6. an application resource loading equipemtn, it is characterised in that including:
Type identification acquiring unit, for obtaining the resource type of application resource to be loaded in terminal applies, and obtains the type identification that described resource type is corresponding;
Address designation searches unit, for obtaining the list of types that described type identification is corresponding in the resource index of described terminal applies, and searches the resource address mark of described application resource in described list of types;
Resource loading unit, for obtaining according to described resource address mark and load described application resource.
7. equipment according to claim 6, it is characterised in that also include:
Mark memory element, for obtaining the resource type of application resource in terminal applies, and identifies the resource address of described application resource and stores to list of types corresponding to described resource type;
Index generates unit, generates the resource index of described terminal applies for the type identification corresponding with described resource type according to described list of types.
8. equipment according to claim 6, it is characterised in that also include:
Frequency acquisition unit, the resource loading frequency corresponding for obtaining the application resource of terminal applies;
Resource memory element, for when described resource loading frequency belongs to the first loading priority, storing described application resource to the Installed System Memory block of pre-first to file;
Described resource memory element, is additionally operable to, when described resource loading frequency belongs to the second loading priority, be stored to preset cache list by described application resource.
9. equipment according to claim 8, it is characterised in that described resource loading unit specifically for:
When described resource loading frequency belongs to the first loading priority, in described Installed System Memory block, obtain described application resource according to described resource address mark, and described application resource is loaded in the loading memory block of pre-first to file;
When described resource loading frequency belongs to the second loading priority, in described preset cache list, obtain described application resource according to described resource address mark, and described application resource is loaded in described loading memory block;
When described resource loading frequency belongs to the 3rd loading priority, in the resource folder of described terminal applies, obtain described application resource according to described resource address mark, and described application resource is loaded in described loading memory block;
Wherein, the described first the described second rank loading priority and the described 3rd that is superior to loading priority loads the rank of priority, and described second loads the rank being superior to described 3rd loading priority of priority.
10. equipment according to claim 8 or claim 9, it is characterised in that also include:
Frequency updating block, for, after loading described application resource, updating the resource loading frequency that described application resource is corresponding.
CN201610099407.3A 2016-02-23 2016-02-23 A kind of application resource loading method and its equipment Active CN105760199B (en)

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 true CN105760199A (en) 2016-07-13
CN105760199B 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)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708575A (en) * 2016-12-20 2017-05-24 北京奇虎科技有限公司 Mobile terminal and method and device for loading and operating applications by mobile terminal
CN107220186A (en) * 2017-07-03 2017-09-29 福建新和兴信息技术有限公司 The buffer memory management method and terminal of business object in android system
CN107357929A (en) * 2017-07-27 2017-11-17 广东欧珀移动通信有限公司 File reading, mobile terminal and readable storage medium storing program for executing
WO2018130024A1 (en) * 2017-01-12 2018-07-19 中兴通讯股份有限公司 Data processing method, device, computer-readable storage medium and terminal
CN109165052A (en) * 2018-08-08 2019-01-08 腾讯科技(深圳)有限公司 Interaction processing method, device and the terminal of application scenarios, system, storage medium
CN110463162A (en) * 2017-09-19 2019-11-15 华为技术有限公司 Using dispositions method, apparatus and system
CN110543337A (en) * 2019-09-02 2019-12-06 联想(北京)有限公司 application program loading processing method, electronic device and medium
CN111198729A (en) * 2020-01-10 2020-05-26 腾讯科技(深圳)有限公司 Static resource loading method and device, computer equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101316226A (en) * 2007-06-01 2008-12-03 阿里巴巴集团控股有限公司 Method, device and system for acquiring resources
CN101788906A (en) * 2010-01-21 2010-07-28 中兴通讯股份有限公司 Resource management method and system thereof
CN101799788A (en) * 2010-03-23 2010-08-11 中兴通讯股份有限公司 Level-to-level administration method and system of storage resources
CN101853215A (en) * 2010-06-01 2010-10-06 恒生电子股份有限公司 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
CN104572303A (en) * 2015-01-08 2015-04-29 盟游(北京)科技有限公司 Application resource management and transferring device and method and application resource management system
CN105117180A (en) * 2015-09-28 2015-12-02 联想(北京)有限公司 Data storing method and device and solid state disc

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101316226A (en) * 2007-06-01 2008-12-03 阿里巴巴集团控股有限公司 Method, device and system for acquiring resources
CN101788906A (en) * 2010-01-21 2010-07-28 中兴通讯股份有限公司 Resource management method and system thereof
CN101799788A (en) * 2010-03-23 2010-08-11 中兴通讯股份有限公司 Level-to-level administration method and system of storage resources
CN101853215A (en) * 2010-06-01 2010-10-06 恒生电子股份有限公司 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
CN104572303A (en) * 2015-01-08 2015-04-29 盟游(北京)科技有限公司 Application resource management and transferring device and method and application resource management system
CN105117180A (en) * 2015-09-28 2015-12-02 联想(北京)有限公司 Data storing method and device and solid state disc

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708575A (en) * 2016-12-20 2017-05-24 北京奇虎科技有限公司 Mobile terminal and method and device for loading and operating applications by mobile terminal
CN106708575B (en) * 2016-12-20 2021-05-04 北京安云世纪科技有限公司 Mobile terminal and method and device for loading and running application thereof
WO2018130024A1 (en) * 2017-01-12 2018-07-19 中兴通讯股份有限公司 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
CN107357929A (en) * 2017-07-27 2017-11-17 广东欧珀移动通信有限公司 File reading, mobile terminal and readable storage medium storing program for executing
CN110463162A (en) * 2017-09-19 2019-11-15 华为技术有限公司 Using dispositions method, apparatus and system
CN110463162B (en) * 2017-09-19 2021-01-05 华为技术有限公司 Application deployment method, device and system
CN109165052A (en) * 2018-08-08 2019-01-08 腾讯科技(深圳)有限公司 Interaction processing method, device and the terminal of application scenarios, system, storage medium
CN110543337A (en) * 2019-09-02 2019-12-06 联想(北京)有限公司 application program loading processing method, electronic device and medium
CN111198729A (en) * 2020-01-10 2020-05-26 腾讯科技(深圳)有限公司 Static resource loading method and device, computer equipment and storage medium
CN111198729B (en) * 2020-01-10 2021-07-20 腾讯科技(深圳)有限公司 Static resource loading method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN105760199B (en) 2019-07-16

Similar Documents

Publication Publication Date Title
CN105760199A (en) Method and equipment for loading application resource
US20160371095A1 (en) Implementation and Deletion Methods and Apparatuses for Multiple Operating Systems on Smart Device
CN103500116A (en) Method and system for clearing data generated by application program
US10990540B2 (en) Memory management method and apparatus
US9734082B2 (en) Temporal standby list
US20190223051A1 (en) Load balancing method and related device
CN105760522A (en) Information search method and device based on application program
CN105045928A (en) Method, device and electronic equipment for displaying to-be-cleaned data
CN104899049A (en) File deleting method and apparatus thereof
US20170185388A1 (en) Application program uninstallation method and apparatus
US9456412B2 (en) Electronic device and method for selecting access point name
CN107145451B (en) JavaScript object storage and recovery method and device
CN105511932A (en) Application unloading method and device
EP3487156A2 (en) System and methods for tracking the usage of digital services
CN103984621B (en) log separation method and system
CN105792387A (en) Communication connection method and device thereof
CN107247722B (en) File scanning method and device and intelligent terminal
CN107870728B (en) Method and apparatus for moving data
CN106844406B (en) Search method and search device
WO2008139308A1 (en) Application specific garbage collection system
CN111712806A (en) Method and device for clearing residual file and readable storage medium
CN102630061B (en) A kind of Set Top Box deposits optimization method and the device of number of units amount
CN104598258B (en) Application software starting method and device
EP2990920A1 (en) System control method, portable information terminal control method, and server control method
CN108446144B (en) Application program starting method and device, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
C06 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