CN110083416B - Resource loading method and device - Google Patents

Resource loading method and device Download PDF

Info

Publication number
CN110083416B
CN110083416B CN201910229009.2A CN201910229009A CN110083416B CN 110083416 B CN110083416 B CN 110083416B CN 201910229009 A CN201910229009 A CN 201910229009A CN 110083416 B CN110083416 B CN 110083416B
Authority
CN
China
Prior art keywords
initialization process
configuration information
initialization
information
data structure
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910229009.2A
Other languages
Chinese (zh)
Other versions
CN110083416A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201910229009.2A priority Critical patent/CN110083416B/en
Publication of CN110083416A publication Critical patent/CN110083416A/en
Application granted granted Critical
Publication of CN110083416B publication Critical patent/CN110083416B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/451Execution arrangements for user interfaces
    • G06F9/454Multi-language systems; Localisation; Internationalisation

Abstract

The application provides a resource loading method, which comprises the following steps: acquiring first common configuration information; generating a first data structure according to a resource file and first common configuration information, wherein the resource file comprises information for completing M initialization processes, the first data structure comprises information for completing M1 initialization processes in the M initialization processes, the M initialization processes correspond to the M initialization process configuration information one by one, and M1 initialization process configuration information corresponding to the M1 initialization processes are matched with the first common configuration information; acquiring current initialization process configuration information corresponding to a current initialization process; and under the condition that the current initialization process configuration information is matched with the first common configuration information, acquiring information for completing the current initialization process according to the current initialization process configuration information and the first data structure. The application provides a resource loading method and device, and aims to improve the use fluency of electronic equipment.

Description

Resource loading method and device
Technical Field
The present application relates to the field of computer application technologies, and in particular, to a method and an apparatus for resource loading.
Background
The electronic device usually stores resource files applied to various scenes, so as to improve the man-machine interaction characteristics of the electronic device and increase the functions which can be realized by the electronic device. For example, language packs of a plurality of countries are stored in the electronic device, and the electronic device can be used by users of the plurality of countries. For another example, the electronic device stores interface display files with various combined colors, and a user using the electronic device can switch interface display themes according to the preference of the user. As the functions that can be realized by the electronic device are more and more, the resource files stored by the electronic device are larger and larger, which is not beneficial to rapidly realizing the switching of various application scenes, and even affects the use fluency of the electronic device.
Disclosure of Invention
The application provides a resource loading method and device, and aims to improve the use fluency of electronic equipment.
In a first aspect, a method for resource loading is provided, where the method includes: acquiring first common configuration information; generating a first data structure according to a resource file and the first common configuration information, wherein the resource file comprises information for completing M initialization processes, the first data structure comprises information for completing M1 initialization processes in the M initialization processes, the M initialization processes correspond to the M initialization process configuration information one by one, the M1 initialization process configuration information corresponding to the M1 initialization processes are matched with the first common configuration information, M is a positive integer greater than 1, and M1 is a positive integer greater than or equal to 1 and less than M; acquiring current initialization process configuration information corresponding to a current initialization process; and under the condition that the current initialization process configuration information is matched with the first common configuration information, acquiring information for completing the current initialization process according to the current initialization process configuration information and the first data structure.
In this embodiment of the application, according to a device configuration parameter commonly used by a device, the electronic device may traverse a part of commonly used resource items. In the process of executing the initialization process, information for completing the current initialization process can be obtained only by traversing a small amount of data, and the method is favorable for improving the use fluency of the electronic equipment.
With reference to the first aspect, in certain implementations of the first aspect, the method further includes: acquiring change initialization process configuration information corresponding to the change initialization process; under the condition that the change initialization process configuration information is not matched with the first common configuration information, acquiring second common configuration information according to the change initialization process configuration information; generating a second data structure according to the resource file and the second common configuration information, where the second data structure includes information used to complete M2 initialization processes among the M initialization processes, M2 initialization process configuration information corresponding to the M2 initialization processes are matched with the second common configuration information, and M2 is a positive integer greater than or equal to 1 and less than M; and acquiring information for completing the change initialization process according to the second data structure and the change initialization process configuration information.
In the embodiment of the present application, it is faster to obtain information from the second data structure than to obtain information from the resource file. Because the second data structure stores a smaller amount of data than the resource file, the electronic device may obtain information for completing the change initialization process by traversing the smaller amount of data.
With reference to the first aspect, in certain implementations of the first aspect, the method further includes: acquiring change initialization process configuration information corresponding to the change initialization process; and under the condition that the configuration information of the change initialization process is not matched with the first common configuration information, acquiring information for completing the change initialization process according to the resource file and the configuration information of the change initialization process.
In the embodiment of the application, in order to preferentially meet the use of the user, the resource file is traversed to acquire the information for completing the change initialization process, and then the resource file is traversed to generate the second data structure, so that the time for completing the change initialization process can be reduced.
With reference to the first aspect, in certain implementations of the first aspect, the first data structure is an index table that includes pointers to the information for completing the m1 initialization processes.
In the embodiment of the present application, all information required for executing all initialization processes is stored in the electronic device, and the first data structure may only store an address of information required for executing a part of initialization processes or a pointer indicating information required for completing a part of initialization processes, so that the electronic device may find information for completing a current initialization process according to the first data structure, thereby increasing a processing speed of the initialization processes.
With reference to the first aspect, in some implementations of the first aspect, the obtaining information used for completing the current initialization process includes: and acquiring a pointer indicating the information for completing the current initialization process according to the first data structure.
In the embodiment of the application, all information required for executing all initialization processes is stored in the electronic device, and the electronic device acquires the information for completing the current initialization process according to the pointer, so that the processing speed of the initialization process can be improved.
With reference to the first aspect, in certain implementations of the first aspect, the m1 initialization processes include a system initialization process and an application initialization process, and the current initialization process is a system initialization process or an application initialization process.
In the embodiment of the application, the use fluency of the electronic equipment can be improved in the starting process of the electronic equipment and the process of starting the application program of the electronic equipment.
With reference to the first aspect, in certain implementations of the first aspect, the first common configuration information is language class configuration information.
In the embodiment of the application, because the language is changed infrequently, extra processing tasks are not added to the electronic equipment while the use fluency of the electronic equipment is improved.
In a second aspect, an apparatus for resource loading is provided, including: the acquisition module is used for acquiring first common configuration information; a generating module, configured to generate a first data structure according to a resource file and the first common configuration information, where the resource file includes information for completing M initialization processes, the first data structure includes information for completing M1 initialization processes among the M initialization processes, the M initialization processes correspond to the M initialization process configuration information one to one, M1 initialization process configuration information corresponding to the M1 initialization processes are matched with the first common configuration information, M is a positive integer greater than 1, and M1 is a positive integer greater than or equal to 1 and smaller than M; the acquisition module is also used for acquiring current initialization process configuration information corresponding to the current initialization process; the obtaining module is further configured to obtain information for completing the current initialization process according to the current initialization process configuration information and the first data structure, when the current initialization process configuration information matches the first common configuration information.
With reference to the second aspect, in some implementations of the second aspect, the obtaining module is further configured to obtain change initialization process configuration information corresponding to a change initialization process; the obtaining module is further configured to obtain second common configuration information according to the change initialization process configuration information when the change initialization process configuration information does not match the first common configuration information; the generating module is further configured to generate a second data structure according to the resource file and the second common configuration information, where the second data structure includes information used to complete M2 initialization processes of the M initialization processes, the M2 initialization process configuration information corresponding to the M2 initialization processes are matched with the second common configuration information, and M2 is a positive integer greater than or equal to 1 and less than M; the obtaining module is further configured to obtain information for completing the change initialization process according to the second data structure and the change initialization process configuration information.
With reference to the second aspect, in some implementations of the second aspect, the obtaining module is further configured to obtain change initialization process configuration information corresponding to a change initialization process; and under the condition that the configuration information of the change initialization process is not matched with the first common configuration information, the obtaining module is further used for obtaining information for completing the change initialization process according to the resource file and the configuration information of the change initialization process.
With reference to the second aspect, in certain implementations of the second aspect, the first data structure is an index table that includes pointers to the information for completing the m1 initialization processes.
With reference to the second aspect, in some implementations of the second aspect, the obtaining module is specifically configured to obtain, according to the first data structure, the pointer indicating the information for completing the current initialization process.
With reference to the second aspect, in some implementations of the second aspect, the m1 initialization processes include a system initialization process and an application initialization process, and the current initialization process is a system initialization process or an application initialization process.
With reference to the second aspect, in some implementations of the second aspect, the first common configuration information is language-class configuration information.
In a third aspect, an apparatus for resource loading is provided, where the apparatus includes a module configured to perform the method for resource loading in the first aspect and any one of the possible implementation manners of the first aspect.
In a fourth aspect, an apparatus for resource loading is provided, the apparatus comprising: a memory for storing a program; a processor and a transceiver, wherein the processor is configured to execute a program stored in the memory, and when the program is executed, the processor is configured to perform the method of the first aspect and any one of the possible implementations of the first aspect.
The resource loading apparatus in the fourth aspect may specifically be an electronic device, such as a smart phone, a PAD, a smart watch, and the like.
In a fifth aspect, a computer-readable medium is provided, which stores program code for execution by a device, the program code comprising instructions for performing the method of the first aspect and any one of the possible implementations of the first aspect.
A sixth aspect provides a computer program code comprising instructions for carrying out the method of the first aspect and any one of the possible implementations of the first aspect.
The computer program code in the above sixth aspect may be program code located inside the electronic device, and when executed, may increase a starting speed of an application scenario of the electronic device.
Drawings
FIG. 1 is a schematic diagram of an initialization process;
FIG. 2 is a schematic flow chart diagram of a method for loading resources according to an embodiment of the present application;
FIG. 3 is a schematic flow chart diagram of a method for loading resources according to an embodiment of the present application;
FIG. 4 is a schematic flow chart diagram of a method for resource loading according to an embodiment of the present application;
FIG. 5 is a schematic block diagram of an apparatus for resource loading according to an embodiment of the present application;
fig. 6 is a schematic block diagram of an apparatus for resource loading according to an embodiment of the present application.
Detailed Description
The technical solution in the present application will be described below with reference to the accompanying drawings.
The method for reading the file cache can be executed by electronic equipment, wherein the electronic equipment can be intelligent terminal equipment containing rich display contents, such as a smart phone (especially an android phone), a Personal Digital Assistant (PDA), a tablet computer, a vehicle-mounted computer and the like.
In an embodiment of the application, an electronic device includes a hardware layer, an operating system layer running on top of the hardware layer, and an application layer running on top of the operating system layer. The hardware layer includes hardware such as a Central Processing Unit (CPU), a Memory Management Unit (MMU), and a memory (also referred to as a main memory). The operating system may be any one or more computer operating systems that implement business processing through processes (processes), such as a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or a windows operating system. The application layer comprises applications such as a browser, an address list, word processing software, instant messaging software and the like. Furthermore, the embodiment of the present application does not particularly limit the specific structure of the execution subject of the method provided by the embodiment of the present application, as long as the execution subject can communicate with the method provided by the embodiment of the present application by running the program recorded with the code of the method provided by the embodiment of the present application, for example, the execution subject of the method provided by the embodiment of the present application may be an electronic device, or a functional module capable of calling a program and executing the program in the electronic device.
In addition, various aspects or features of the present application may be implemented as a method, apparatus, or article of manufacture using standard programming and/or engineering techniques. The term "article of manufacture" as used herein is intended to encompass a computer program accessible from any computer-readable device, carrier, or media. For example, computer-readable media can include but are not limited to magnetic storage devices (e.g., hard disk, floppy disk, magnetic strips, etc.), optical disks (e.g., Compact Disk (CD), Digital Versatile Disk (DVD), etc.), smart cards, and flash memory devices (e.g., erasable programmable read-only memory (EPROM), card, stick, or key drive, etc.). In addition, various storage media described herein can represent one or more devices and/or other machine-readable media for storing information. The term "machine-readable medium" can include, without being limited to, wireless channels and various other media capable of storing, containing, and/or carrying instruction(s) and/or data.
Fig. 1 is a schematic diagram of an electronic device performing an initialization process. The memory of the electronic device stores data applicable to a variety of device configuration parameters, such as a variety of language configurations, a variety of font configurations, a variety of theme interface configurations, a variety of screen size configurations, and the like. In the process of executing the initialization process by the electronic device, the electronic device maps data in the memory into the cache according to the cache format to form a resource file, where the resource file includes a plurality of resource items corresponding to a plurality of device configuration parameters, and the resource items are used for implementing the initialization process under the plurality of device configuration parameters, such as resources 1 to resource N shown in fig. 1. The electronic device selects, according to the current device configuration parameter, for example, the current language configuration, the current font configuration, the current theme interface configuration, the current screen size configuration, and the like, a resource item corresponding to the current device configuration parameter from a plurality of resource items of the resource file, such as a resource r shown in fig. 11To resource rn. That is, the electronic device may configure the parameters and resource files according to the current deviceAnd (4) finishing the initialization process.
In fact, the data volume of the resource file is large, and the total data volume of the resource items matched with the current device configuration parameters is small. If the device configuration parameters are switched, the electronic device needs to select a resource item matched with the current device configuration parameters from the resource file with large storage capacity. Even if the index method is used, the resource item matching with the current device configuration parameter cannot be quickly acquired.
Therefore, the embodiment of the application provides a method and a device for loading resources, so as to quickly complete an initialization process and improve human-computer interaction performance.
Fig. 2 is a schematic flowchart of a method for loading a resource according to an embodiment of the present application.
First common configuration information is obtained 201.
The first common configuration information may be information that is not typically changed in device configuration parameters. That is, the first common configuration information may be configuration information that the electronic device generally uses. The device configuration types include language, whether a keyboard is displayed or not, screen size, whether a navigation bar is displayed or not, font size, screen display direction, theme interface and the like. Taking the language configuration type as an example, the device configuration parameters may include language configuration parameters such as chinese, english, japanese, and the like. For example, after the user sets the electronic device to use the chinese language, the language used by the electronic device is not changed in a short period of time, and the electronic device may obtain the first common configuration information according to the language commonly used by the user. As another example, the language used by most users is usually some international universal language, and the electronic device may obtain the first common configuration information according to the international universal language.
In a possible implementation manner, the obtaining of the first common configuration information may be obtaining the first common configuration information according to a preset device configuration parameter. For example, if the preset device configuration parameter is a chinese configuration parameter, the chinese configuration parameter is obtained as the first common configuration information.
In one possible implementation manner, the obtaining of the first common configuration information may be obtaining the first common configuration information according to a user usage habit. For example, the device configuration parameters that the user uses or uses for a long time are chinese configuration parameters and color theme interface configuration parameters, and the first common configuration information includes chinese configuration parameters and color theme interface configuration parameters.
Optionally, the first common configuration information is language type configuration information.
In the embodiment of the present application, the first common configuration information is taken as language type configuration information as an example for explanation. As mentioned above, the first common configuration information may also be other types of configuration information, which is not limited in this application.
202, according to a resource file and the first common configuration information, generating a first data structure, where the resource file includes information for completing M initialization processes, the first data structure includes information for completing M1 initialization processes among the M initialization processes, the M initialization processes correspond to the M initialization process configuration information one to one, the M1 initialization process configuration information corresponding to the M1 initialization processes are matched with the first common configuration information, M is a positive integer greater than 1, and M1 is a positive integer greater than or equal to 1 and less than M.
The information in the resource file may be used to complete a plurality of initialization processes that correspond one-to-one with a plurality of initialization process configuration information. For example, the device configuration type includes font and language, the configuration parameters of the font class include font 1 and font 2, and the configuration parameters of the language class include language 1 and language 2, so that the configuration information of the plurality of initialization processes may include (font 1, language 1), (font 2, language 1), (font 1, language 2), (font 2, language 2), and correspond to 4 initialization processes. Then, as long as the device configuration parameters currently used by the electronic device belong to the device configuration parameters, the electronic device may complete the initialization process according to the information in the resource file, that is, the resource file contains information required for executing the initialization process.
The electronic device may select, according to the resource file and the first common configuration information, a part of the initialization process matching the first common configuration information from the plurality of initialization processes, and generate a first data structure, where the first data structure includes information for completing the part of the initialization process. For example, if the first common configuration information is language 1, the electronic device may determine, from the initialization process configuration information (font 1, language 1), (font 2, language 1), (font 1, language 2), and (font 2, language 2), the initialization process configuration information (font 1, language 1), (font 2, language 1) that matches language 1 and corresponds to 2 initialization processes, and write information for completing the 2 initialization processes into the first data structure according to the resource file.
In an example, the m1 pieces of initialization process configuration information are matched with the first common configuration information, which may mean that the device configuration parameters corresponding to each piece of initialization process configuration information in the m1 pieces of initialization process configuration information include the device configuration parameters corresponding to the first common configuration information. For example, (font 1, language 1), (font 2, language 1) are 2 pieces of initialization process configuration information, the 2 pieces of initialization process configuration information correspond to 2 pieces of device configuration parameter combinations, and a language configuration parameter corresponding to each piece of initialization process configuration information in the 2 pieces of initialization process configuration information is the same as a language configuration parameter corresponding to the first common configuration information, that is, the language configuration parameter corresponding to each piece of initialization process configuration information in the 2 pieces of initialization process configuration information is language 1, and the language configuration parameter corresponding to the first common configuration information is language 1, so that the 2 pieces of initialization process configuration information are matched with the first common configuration information.
In an example, the m1 pieces of initialization process configuration information match the first common configuration information, which may mean that the device configuration parameters corresponding to the first common configuration information include one or more device configuration parameters corresponding to each piece of initialization process configuration information in the m1 pieces of initialization process configuration information. For example, the device configuration parameters corresponding to the first common configuration information are language 1 and language 2, (font 1, language 1), (font 1, language 2), (font 1, language 3) are 3 pieces of initialization process configuration information, and the 3 pieces of initialization process configuration information correspond to 3 device configuration parameter combinations; the device configuration parameter corresponding to the first common configuration information includes 1 device configuration parameter, i.e., language 1, corresponding to the initialization process configuration information (font 1, language 1), and the device configuration parameter corresponding to the first common configuration information includes 1 device configuration parameter, i.e., language 2, corresponding to the initialization process configuration information (font 1, language 2), so that the initialization process configuration information (font 1, language 1), (font 1, language 2) matches with the first common configuration information.
In the embodiment of the present application, the data structure may be data stored and organized in a storage, such as a buffer, a memory, and the like, by the electronic device. The data structures are such that one or more specific relationships may exist between the data and the data. Such as a tree data structure, a string data structure, a table data structure. It should be understood that the electronic device processes data at the bottom layer of the physical layer, the data link layer, etc. in a different manner than the data processing manner of the file system.
The first data structure may be a structure containing information needed to perform the m1 initialization processes.
Optionally, the first data structure is an index table, and the index table includes a pointer indicating the information for completing the m1 initialization procedures.
That is, all information required to perform the M initialization processes is stored in the electronic device, the first data structure may store only addresses of information required to perform the M1 initialization processes or pointers indicating information required to complete the M1 initialization processes, and then the electronic device may find information to complete the current initialization process according to the first data structure, so that the processing speed of the initialization process may be increased.
And 203, acquiring current initialization process configuration information corresponding to the current initialization process.
The electronic device may obtain the current initialization process configuration information according to the current device configuration parameters. For example, if the current language configuration parameter is language 1 and the font configuration parameter is font 1, the current initialization process configuration information may be (language 1, font 1).
204, under the condition that the current initialization process configuration information is matched with the first common configuration information, acquiring information for completing the current initialization process according to the current initialization process configuration information and the first data structure.
The electronic device may determine whether the current initialization process configuration information matches the first common configuration information.
In an example, the electronic device may determine whether the device configuration parameters corresponding to the current initialization process configuration information include device configuration parameters corresponding to the first common configuration information. For example, the current initialization process configuration information is (font 1, language 1), and the device configuration parameters corresponding to the current initialization process configuration information are font 1 and language 1; the device configuration parameter corresponding to the first common configuration information is language 1; therefore, the device configuration parameters corresponding to the current initialization process configuration information include device configuration parameters corresponding to the first common configuration information, and the current initialization process configuration information is matched with the first common configuration information.
In one example, the electronic device may determine whether the device configuration parameters corresponding to the first common configuration information include one or more device configuration parameters corresponding to the current initialization process configuration information. For example, the current initialization process configuration information is (font 1, language 1), and the device configuration parameters corresponding to the current initialization process configuration information are font 1 and language 1; the device configuration parameters corresponding to the first common configuration information are language 1 and language 2; therefore, the device configuration parameters corresponding to the first common configuration information include one or more device configuration parameters corresponding to the current initialization process configuration information, and the current initialization process configuration information is matched with the first common configuration information.
The current initialization process configuration information matches the first common configuration information, in other words, since the m1 initialization process configuration information, which corresponds to m1 initialization processes one to one, matches the first common configuration information, the m1 initialization processes include the current initialization process, and thus the first data structure contains information for completing the m1 initialization processes. The electronic device may sort out information for completing the current initialization process from the information for completing the m1 initialization processes saved in the first data structure according to the current initialization process configuration information. Obtaining information from the first data structure is faster than obtaining information from the resource file. Because the first data structure stores a smaller amount of data than the resource file, the electronic device may obtain information for completing the current initialization process by traversing the smaller amount of data.
Optionally, the obtaining information for completing the current initialization process includes: and acquiring a pointer indicating the information for completing the current initialization process according to the first data structure.
In one example, where data needed to perform m1 initialization processes is stored in a first data structure, the electronic device may generate a first initialization index table that stores pointers indicating the data needed in the first data structure to perform the current initialization process.
That is, all information required to execute the current initialization process is stored in the first data structure, and the first initialization index table may only store an address of the information required to execute the current initialization process or a pointer indicating information required to complete the current initialization process, so that the electronic device may obtain the information for completing the current initialization process according to the first data structure and the first initialization index table, thereby improving the processing speed of the initialization process.
In one example, the first data structure is an index table, the first data structure includes pointers to the information for completing the m1 initialization processes, and the electronic device may generate a second initialization index table, and copy information of the pointers in the first data structure to the second initialization index table, the pointers indicating the information for completing the current initialization process.
That is to say, all information required to execute the current initialization process is stored in the electronic device, the first data structure is an index table, and an address of the information required to execute the current initialization process or a pointer indicating the information required to complete the current initialization process is stored, so that the electronic device can directly copy the data in the first data structure to form a second initialization index table, and obtain the information for completing the current initialization process according to the second initialization index table. The copying speed is high, and the data quantity stored in the second initialization index table is small, so that the processing speed of the initialization process can be improved.
Optionally, the m1 initialization processes include a system initialization process and an application initialization process, and the current initialization process is the system initialization process or the application initialization process.
Optionally, the method further includes: generating a third data structure according to the first data structure and the third common configuration information, where the third data structure includes information for completing m3 initialization processes from the m1 initialization processes, m3 configuration information corresponding to the m3 initialization processes matches the third common configuration information, and m3 is a positive integer greater than or equal to 1 and less than m 1; the acquiring information for completing the current initialization process according to the current initialization process configuration information and the first data structure includes: and acquiring information for completing the current initialization process according to the current initialization process configuration information and the third data structure.
The electronic equipment starts a system initialization process in the starting process of the electronic equipment, and the electronic equipment starts an application initialization process in the starting process of the electronic equipment. The first data structure includes information for completing a system initialization process and an application initialization process, so that the electronic device can acquire the information for completing a current initialization process according to the first data structure in a process of starting the electronic device or in a process of starting an application program by the electronic device.
When a user changes the device configuration parameters of the electronic device, the current initialization process configuration information changes, and the device needs to re-execute the initialization process. For convenience of description, the changed initialization process configuration information is referred to as changed initialization process configuration information, and the initialization process that is re-executed and corresponds to the changed initialization process configuration information is referred to as a changed initialization process.
In one case, the configuration information of the change initialization process is matched with the first common configuration information, and then the electronic device may obtain information for completing the change initialization process according to the configuration information of the change initialization process and the first data structure. The method for the electronic device to re-execute the initialization process may refer to step 204, which is not described herein again.
In another case, the configuration information of the change initialization process does not match the configuration information of the first common configuration information, that is, the change initialization process is not included in the m1 initialization processes. Then, the method for the electronic device to re-execute the initialization process may refer to steps 301 to 308 or steps 401 to 407.
Fig. 3 is a schematic flowchart of a method for loading a resource according to an embodiment of the present application.
301, acquiring first common configuration information;
302, according to a resource file and the first common configuration information, generating a first data structure, where the resource file includes information for completing M initialization processes, the first data structure includes information for completing M1 initialization processes among the M initialization processes, the M initialization processes correspond to the M initialization process configuration information one to one, the M1 initialization process configuration information corresponding to the M1 initialization processes are matched with the first common configuration information, M is a positive integer greater than 1, and M1 is a positive integer greater than or equal to 1 and less than M;
303, acquiring current initialization process configuration information corresponding to the current initialization process;
304, when the current initialization process configuration information matches the first common configuration information, acquiring information for completing the current initialization process according to the current initialization process configuration information and the first data structure.
The specific implementation manner of steps 301 to 304 can refer to steps 201 to 204 in the embodiment shown in fig. 2, and thus, detailed description is not necessary here.
Change initialization process configuration information corresponding to the change initialization process is acquired 305.
The electronic device may obtain the change initialization process configuration information according to the changed device configuration parameters. For example, before the user changes the device configuration parameter of the electronic device, the language configuration parameter of the electronic device is language 1, and the font configuration parameter is font 1; at this time, if the user changes the language configuration parameter of the electronic device to language 2 and the font configuration parameter is not changed, the change initialization process configuration information may be (language 2, font 1).
And 306, under the condition that the configuration information of the change initialization process is not matched with the first common configuration information, acquiring second common configuration information according to the configuration information of the change initialization process.
The changing of the initialization process configuration information is not matched with the first common configuration information, which may mean that all device configuration parameters corresponding to the current initialization process configuration information are different from the device configuration parameters corresponding to the first common configuration information. For example, the device configuration parameter corresponding to the first common configuration information is language 1, and the device configuration parameter corresponding to the changed initialization process configuration information is language 2 and font 1, so that the device configuration parameter corresponding to the first common configuration information is different from all the device configuration parameters corresponding to the changed initialization process configuration information, and the changed initialization process configuration information is not matched with the first common configuration information.
In one example, the second common configuration information may be obtained according to the first common configuration information and the change initialization process configuration information. For example, the first common configuration information is language 1, the change initialization process configuration information is (language 2, font 1), and the electronic device may use language 2 as the second common configuration information because the device configuration parameter of the electronic device is changed from language 1 to language 2.
In one example, the second common configuration information may be obtained according to the current initialization process configuration information and the changed initialization process configuration information. For example, the current initialization process configuration information is (language 1, font 1), the changed initialization process configuration information is (language 2, font 1), and the electronic device may use language 2 as the second common configuration information because the device configuration parameter of the electronic device is changed from language 1 to language 2.
In one example, the second common configuration information may be obtained according to a preset device configuration type. For example, the preset configuration type is a language type, the current initialization process configuration information is (language 1, font 1), the changed initialization process configuration information is (language 2, font 2), and the electronic device may use language 2 as the second common configuration information according to the preset configuration type.
307, according to the resource file and the second common configuration information, generating a second data structure, where the second data structure includes information used to complete M2 initialization processes among the M initialization processes, M2 initialization process configuration information corresponding to the M2 initialization processes are matched with the second common configuration information, and M2 is a positive integer greater than or equal to 1 and less than M.
Since the information in the resource file may be used to complete M initialization processes, the electronic device may select M2 initialization processes matching the second common configuration information from the M initialization processes according to the resource file and the second common configuration information, and generate a second data structure, where the second data structure includes information used to complete the M2 initialization processes. For example, the resource file includes information for completing 4 initialization processes, and the initialization process configuration information corresponding to the 4 initialization processes is (font 1, language 1), (font 2, language 1), (font 1, language 2), (font 2, language 2). The second common configuration information is language 2, then, the electronic device may determine, from the initialization process configuration information (font 1, language 1), (font 2, language 1), (font 1, language 2), and (font 2, language 2), the initialization process configuration information (font 1, language 2), (font 2, language 2) that matches language 2 and corresponds to 2 initialization processes, and write information for completing the 2 initialization processes into the second data structure according to the resource file.
In an example, the m2 pieces of initialization process configuration information are matched with the second common configuration information, which may mean that the device configuration parameters corresponding to each piece of initialization process configuration information in the m2 pieces of initialization process configuration information include the device configuration parameters corresponding to the second common configuration information.
In an example, the m2 pieces of initialization process configuration information match the second common configuration information, which may mean that the device configuration parameters corresponding to the second common configuration information include one or more device configuration parameters corresponding to each piece of initialization process configuration information in the m2 pieces of initialization process configuration information.
The second data structure may be a structure containing information required to perform the m2 initialization processes.
Optionally, the second data structure is an index table, and the second data structure includes a pointer indicating the information for completing the m2 initialization procedures.
That is, all information required to perform the M initialization procedures is stored in the electronic device, the second data structure may store only addresses of information required to perform the M2 initialization procedures or pointers indicating information required to complete the M2 initialization procedures, and then the electronic device may find information to complete the M2 initialization procedures according to the second data structure, so that the processing speed of the initialization procedures may be increased.
308, obtaining information for completing the change initialization process according to the second data structure and the change initialization process configuration information.
The configuration information of the changed initialization process is matched with the second common configuration information, in other words, since the configuration information of the m2 initialization processes corresponding to the m2 initialization processes one to one is matched with the second common configuration information, the m2 initialization processes include the changed initialization process, and thus the second data structure includes information for completing the m2 initialization processes. The electronic device may sort out information for completing the change initialization process from the information for completing the m2 initialization processes stored in the second data structure according to the change initialization process configuration information. Obtaining information from the second data structure is faster than obtaining information from the resource file. Because the second data structure stores a smaller amount of data than the resource file, the electronic device may obtain information for completing the change initialization process by traversing the smaller amount of data.
Optionally, the obtaining information for completing the change initialization process includes: and acquiring the pointer indicating the information for completing the change initialization process according to the second data structure.
In one example, where the second data structure stores data needed to perform m2 initialization processes, the electronic device may generate a third initialization index table that stores pointers indicating the data needed to perform the altered initialization processes in the second data structure.
That is, all information required to perform the change initialization process is stored in the second data structure, and the third initialization index table may only store an address of the information required to perform the change initialization process or a pointer indicating information required to complete the change initialization process, so that the electronic device may obtain the information to complete the change initialization process according to the second data structure and the third initialization index table, thereby increasing the processing speed of the initialization process.
In one example, the second data structure is an index table, the second data structure includes pointers to the information for completing the m2 initialization processes, and the electronic device may generate a fourth initialization index table, and copy information of the pointers in the second data structure to the fourth initialization index table, the pointers to the information for completing the change initialization process.
That is, all information required to perform the change initialization process is stored in the electronic device, the second data structure is an index table, and an address of the information required to perform the change initialization process or a pointer indicating information required to complete the change initialization process is stored, so that the electronic device may directly copy data in the second data structure to form a fourth initialization index table, and obtain information that completes the change initialization process according to the fourth initialization index table. The copying speed is high, and the data amount stored in the fourth initialization index table is small, so that the processing speed of the initialization process can be improved.
Fig. 4 is a schematic flowchart of a method for loading a resource according to an embodiment of the present application.
401, acquiring first common configuration information;
402, generating a first data structure according to a resource file and the first common configuration information, where the resource file includes information for completing M initialization processes, the first data structure includes information for completing M1 initialization processes among the M initialization processes, the M initialization processes correspond to the M initialization process configuration information one to one, the M1 initialization process configuration information corresponding to the M1 initialization processes are matched with the first common configuration information, M is a positive integer greater than 1, and M1 is a positive integer greater than or equal to 1 and less than M;
403, acquiring current initialization process configuration information corresponding to the current initialization process;
404, when the current initialization process configuration information matches the first common configuration information, obtaining information for completing the current initialization process according to the current initialization process configuration information and the first data structure.
The change initialization process configuration information corresponding to the change initialization process is obtained 405.
The specific implementation manner of steps 401 to 405 may refer to steps 301 to 305 in the embodiment shown in fig. 3, and thus, details are not described herein.
406, when the configuration information of the change initialization process does not match the first common configuration information, acquiring information for completing the change initialization process according to the resource file and the configuration information of the change initialization process.
The changing of the initialization process configuration information is not matched with the first common configuration information, which may mean that all device configuration parameters corresponding to the current initialization process configuration information are different from the device configuration parameters corresponding to the first common configuration information. For example, the device configuration parameter corresponding to the first common configuration information is language 1, and the device configuration parameter corresponding to the changed initialization process configuration information is language 2 and font 1, so that the device configuration parameter corresponding to the first common configuration information is different from all the device configuration parameters corresponding to the changed initialization process configuration information, and the changed initialization process configuration information is not matched with the first common configuration information.
The electronic device may select information for completing the change initialization process from the information for completing the M initialization processes stored in the resource file according to the change initialization process configuration information.
Optionally, the obtaining information for completing the change initialization process includes: and acquiring a pointer indicating the information for completing the change initialization process according to the resource file.
In one example, the resource file stores data required to perform M initialization processes, and the electronic device may generate a fifth initialization index table that stores pointers indicating the data required to perform the altered initialization processes in the resource file.
That is, all information required to perform the change initialization process is stored in the resource file, and the fifth initialization index table may only store an address of the information required to perform the change initialization process or a pointer indicating information required to complete the change initialization process, so that the electronic device may obtain information for completing the change initialization process according to the resource file and the fifth initialization index table, thereby increasing the processing speed of the initialization process.
Optionally, step 406 and step 407 are further included.
And 406, acquiring second common configuration information according to the configuration information of the change initialization process.
Step 407, generating a second data structure according to the resource file and the second common configuration information, where the second data structure includes information used to complete M2 initialization processes in the M initialization processes, the M2 initialization process configuration information corresponding to the M2 initialization processes matches the second common configuration information, and M2 is a positive integer greater than or equal to 1 and less than M.
The specific implementation manner of step 406 and step 407 may refer to step 306 and step 307 in the embodiment shown in fig. 3, and thus details are not needed here.
In order to meet the requirement of users preferentially, the resource file is traversed to obtain the information for completing the change initialization process, and then the resource file is traversed to generate the second data structure, so that the time for completing the change initialization process can be reduced.
The method for loading resources according to the embodiment of the present application is described in detail above with reference to fig. 2 to 4, and the apparatus for loading resources according to the embodiment of the present application is described below with reference to fig. 5 and 6. It should be understood that the apparatus for resource loading described in fig. 5 and 6 can perform the steps of the method for resource loading shown in fig. 2 to 4, and repeated descriptions are appropriately omitted when describing the apparatus shown in fig. 5 and 6 below for the sake of brevity.
Fig. 5 is a schematic block diagram of an apparatus for resource loading according to an embodiment of the present application. The apparatus 500 shown in fig. 5 specifically includes:
an obtaining module 501, configured to obtain first common configuration information;
a generating module 502, configured to generate a first data structure according to a resource file and the first common configuration information, where the resource file includes information for completing M initialization processes, the first data structure includes information for completing M1 initialization processes among the M initialization processes, the M initialization processes correspond to M initialization process configuration information one to one, M1 initialization process configuration information corresponding to the M1 initialization processes are matched with the first common configuration information, M is a positive integer greater than 1, and M1 is a positive integer greater than or equal to 1 and smaller than M;
the obtaining module 501 is further configured to obtain current initialization process configuration information corresponding to a current initialization process;
the obtaining module 501 is further configured to, when the current initialization process configuration information matches the first common configuration information, obtain information for completing the current initialization process according to the current initialization process configuration information and the first data structure.
In this embodiment of the application, according to a device configuration parameter commonly used by a device, the electronic device may traverse a part of commonly used resource items. In the process of executing the initialization process, information for completing the current initialization process can be obtained only by traversing a small amount of data, and the method is favorable for improving the use fluency of the electronic equipment.
Optionally, as an embodiment, the obtaining module 501 is further configured to obtain configuration information of a change initialization process corresponding to the change initialization process; when the configuration information of the change initialization process is not matched with the first common configuration information, the obtaining module 501 is further configured to obtain second common configuration information according to the configuration information of the change initialization process; the generating module 502 is further configured to generate a second data structure according to the resource file and the second common configuration information, where the second data structure includes information for completing M2 initialization processes of the M initialization processes, M2 initialization process configuration information corresponding to the M2 initialization processes are matched with the second common configuration information, and M2 is a positive integer greater than or equal to 1 and less than M; the obtaining module 501 is further configured to obtain information for completing the change initialization process according to the second data structure and the change initialization process configuration information.
Optionally, as an embodiment, the obtaining module 501 is further configured to obtain configuration information of a change initialization process corresponding to the change initialization process; the obtaining module 501 is further configured to obtain information for completing the change initialization process according to the resource file and the change initialization process configuration information, when the change initialization process configuration information does not match the first common configuration information.
Optionally, as an embodiment, the first data structure is an index table, and the index table includes a pointer indicating the information for completing the m1 initialization procedures.
Optionally, as an embodiment, the obtaining module 501 is specifically configured to obtain, according to the first data structure, a pointer indicating the information for completing the current initialization process.
Optionally, as an embodiment, the m1 initialization processes include a system initialization process and an application initialization process, and the current initialization process is the system initialization process or the application initialization process.
Optionally, as an embodiment, the first common configuration information is language class configuration information.
Fig. 6 is a schematic block diagram of an apparatus for resource loading according to an embodiment of the present application. The apparatus 600 shown in fig. 6 specifically includes:
a memory 601 for storing programs;
a processor 602 configured to execute the program stored in the memory 601, wherein when the program in the memory 601 is executed, the processor 602 is specifically configured to: acquiring first common configuration information; generating a first data structure according to a resource file and the first common configuration information, wherein the resource file comprises information for completing M initialization processes, the first data structure comprises information for completing M1 initialization processes in the M initialization processes, the M initialization processes correspond to the M initialization process configuration information one by one, the M1 initialization process configuration information corresponding to the M1 initialization processes are matched with the first common configuration information, M is a positive integer greater than 1, and M1 is a positive integer greater than or equal to 1 and less than M; acquiring current initialization process configuration information corresponding to a current initialization process; and under the condition that the current initialization process configuration information is matched with the first common configuration information, acquiring information for completing the current initialization process according to the current initialization process configuration information and the first data structure.
In this embodiment of the application, according to a device configuration parameter commonly used by a device, the electronic device may traverse a part of commonly used resource items. In the process of executing the initialization process, information for completing the current initialization process can be obtained only by traversing a small amount of data, and the method is favorable for improving the use fluency of the electronic equipment.
The processor 602 in the apparatus 600 corresponds to the acquiring module 501 and the generating module 502 in the apparatus 500.
The apparatus 500 and the apparatus 600 may be electronic devices. When the apparatus 600 is an electronic device, the processor 602 may be a Central Processing Unit (CPU) of the electronic device.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (25)

1. A method of resource loading, comprising:
acquiring first common configuration information;
generating a first data structure according to a resource file and the first common configuration information, wherein the resource file comprises information for completing M initialization processes, the first data structure comprises information for completing M1 initialization processes in the M initialization processes, the M initialization processes correspond to the M initialization process configuration information one by one, the M1 initialization process configuration information corresponding to the M1 initialization processes are matched with the first common configuration information, M is a positive integer greater than 1, and M1 is a positive integer greater than or equal to 1 and less than M;
acquiring current initialization process configuration information corresponding to a current initialization process;
and under the condition that the current initialization process configuration information is matched with the first common configuration information, acquiring information for completing the current initialization process according to the current initialization process configuration information and the first data structure.
2. The method of claim 1, further comprising:
acquiring change initialization process configuration information corresponding to the change initialization process;
under the condition that the change initialization process configuration information is not matched with the first common configuration information, acquiring second common configuration information according to the change initialization process configuration information;
generating a second data structure according to the resource file and the second common configuration information, where the second data structure includes information used to complete M2 initialization processes among the M initialization processes, M2 initialization process configuration information corresponding to the M2 initialization processes are matched with the second common configuration information, and M2 is a positive integer greater than or equal to 1 and less than M;
and acquiring information for completing the change initialization process according to the second data structure and the change initialization process configuration information.
3. The method of claim 1, further comprising:
acquiring change initialization process configuration information corresponding to the change initialization process;
and under the condition that the configuration information of the change initialization process is not matched with the first common configuration information, acquiring information for completing the change initialization process according to the resource file and the configuration information of the change initialization process.
4. The method according to any one of claims 1 to 3, wherein the first data structure is an index table comprising pointers to the information for completing the m1 initialization processes.
5. The method according to any one of claims 1 to 3, wherein the obtaining information for completing the current initialization process comprises:
and acquiring a pointer indicating the information for completing the current initialization process according to the first data structure.
6. The method according to any one of claims 1 to 3, wherein the m1 initialization processes include a system initialization process and an application initialization process, and the current initialization process is either the system initialization process or the application initialization process.
7. The method according to any one of claims 1 to 3, wherein the first common configuration information is language class configuration information.
8. The method of claim 4, wherein obtaining information for completing the current initialization process comprises:
and acquiring a pointer indicating the information for completing the current initialization process according to the first data structure.
9. The method according to claim 4, wherein the m1 initialization processes include a system initialization process and an application initialization process, and the current initialization process is either the system initialization process or the application initialization process.
10. The method of claim 4, wherein the first common configuration information is language class configuration information.
11. The method according to claim 8, wherein the m1 initialization processes include a system initialization process and an application initialization process, and the current initialization process is either the system initialization process or the application initialization process.
12. The method according to claim 8 or 9, wherein the first common configuration information is language class configuration information.
13. An apparatus for resource loading, comprising:
the acquisition module is used for acquiring first common configuration information;
a generating module, configured to generate a first data structure according to a resource file and the first common configuration information, where the resource file includes information for completing M initialization processes, the first data structure includes information for completing M1 initialization processes among the M initialization processes, the M initialization processes correspond to the M initialization process configuration information one to one, M1 initialization process configuration information corresponding to the M1 initialization processes are matched with the first common configuration information, M is a positive integer greater than 1, and M1 is a positive integer greater than or equal to 1 and smaller than M;
the acquisition module is also used for acquiring current initialization process configuration information corresponding to the current initialization process;
the obtaining module is further configured to obtain information for completing the current initialization process according to the current initialization process configuration information and the first data structure, when the current initialization process configuration information matches the first common configuration information.
14. The apparatus of claim 13,
the acquisition module is also used for acquiring the configuration information of the change initialization process corresponding to the change initialization process;
the obtaining module is further configured to obtain second common configuration information according to the change initialization process configuration information when the change initialization process configuration information does not match the first common configuration information;
the generating module is further configured to generate a second data structure according to the resource file and the second common configuration information, where the second data structure includes information used to complete M2 initialization processes of the M initialization processes, the M2 initialization process configuration information corresponding to the M2 initialization processes are matched with the second common configuration information, and M2 is a positive integer greater than or equal to 1 and less than M;
the obtaining module is further configured to obtain information for completing the change initialization process according to the second data structure and the change initialization process configuration information.
15. The apparatus of claim 13,
the acquisition module is also used for acquiring the configuration information of the change initialization process corresponding to the change initialization process;
and under the condition that the configuration information of the change initialization process is not matched with the first common configuration information, the obtaining module is further used for obtaining information for completing the change initialization process according to the resource file and the configuration information of the change initialization process.
16. The apparatus according to any of claims 13 to 15, wherein the first data structure is an index table comprising pointers to the information for completing the m1 initialization processes.
17. The apparatus according to any one of claims 13 to 15, wherein the obtaining module is specifically configured to obtain, according to the first data structure, a pointer indicating the information for completing the current initialization process.
18. The apparatus according to any one of claims 13 to 15, wherein the m1 initialization processes comprise a system initialization process and an application initialization process, and the current initialization process is a system initialization process or an application initialization process.
19. The apparatus according to any one of claims 13 to 15, wherein the first common configuration information is language class configuration information.
20. The apparatus according to claim 16, wherein the obtaining module is specifically configured to obtain, according to the first data structure, the pointer indicating the information for completing the current initialization process.
21. The apparatus according to claim 16, wherein the m1 initialization processes include a system initialization process and an application initialization process, and the current initialization process is a system initialization process or an application initialization process.
22. The apparatus of claim 16, wherein the first common configuration information is language class configuration information.
23. The apparatus according to claim 20, wherein the m1 initialization processes include a system initialization process and an application initialization process, and the current initialization process is a system initialization process or an application initialization process.
24. The apparatus according to claim 20 or 21, wherein the first common configuration information is a language class configuration information.
25. A computer-readable storage medium comprising instructions that, when executed on a computer, cause the computer to perform the method of any of claims 1-12.
CN201910229009.2A 2019-03-25 2019-03-25 Resource loading method and device Active CN110083416B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910229009.2A CN110083416B (en) 2019-03-25 2019-03-25 Resource loading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910229009.2A CN110083416B (en) 2019-03-25 2019-03-25 Resource loading method and device

Publications (2)

Publication Number Publication Date
CN110083416A CN110083416A (en) 2019-08-02
CN110083416B true CN110083416B (en) 2021-10-15

Family

ID=67413514

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910229009.2A Active CN110083416B (en) 2019-03-25 2019-03-25 Resource loading method and device

Country Status (1)

Country Link
CN (1) CN110083416B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7941402B2 (en) * 2004-09-24 2011-05-10 Sap Ag Storing and using classes in databases
CN102147735A (en) * 2010-02-10 2011-08-10 华为技术有限公司 Interface single board and business logic loading method
CN103577212A (en) * 2012-08-08 2014-02-12 腾讯科技(深圳)有限公司 System starting preloading method and device
CN103677922A (en) * 2013-12-13 2014-03-26 北京奇虎科技有限公司 Method and device for starting application software
CN104182508A (en) * 2014-08-19 2014-12-03 华为技术有限公司 Data processing method and data processing device
CN105094922A (en) * 2015-08-17 2015-11-25 北京奇虎科技有限公司 Application installation-free operation control method and device
CN105224472A (en) * 2015-10-22 2016-01-06 上海新储集成电路有限公司 A kind of matching process and system finding conventional content
CN105700930A (en) * 2016-02-22 2016-06-22 青岛海信移动通信技术股份有限公司 Application accelerating method and device for embedded operation system
US9521187B2 (en) * 2013-07-12 2016-12-13 Clearwire Ip Holdings Llc Managed filed transfer utilizing dynamic horizontal and vertical scaling
CN108572965A (en) * 2017-03-08 2018-09-25 阿里巴巴集团控股有限公司 A kind of resource loading method and device
CN108647096A (en) * 2018-05-16 2018-10-12 Oppo广东移动通信有限公司 Method of adjustment, device, storage medium and the mobile terminal of system resource configuration

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10462262B2 (en) * 2016-01-06 2019-10-29 Northrop Grumman Systems Corporation Middleware abstraction layer (MAL)

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7941402B2 (en) * 2004-09-24 2011-05-10 Sap Ag Storing and using classes in databases
CN102147735A (en) * 2010-02-10 2011-08-10 华为技术有限公司 Interface single board and business logic loading method
CN103577212A (en) * 2012-08-08 2014-02-12 腾讯科技(深圳)有限公司 System starting preloading method and device
US9521187B2 (en) * 2013-07-12 2016-12-13 Clearwire Ip Holdings Llc Managed filed transfer utilizing dynamic horizontal and vertical scaling
CN103677922A (en) * 2013-12-13 2014-03-26 北京奇虎科技有限公司 Method and device for starting application software
CN104182508A (en) * 2014-08-19 2014-12-03 华为技术有限公司 Data processing method and data processing device
CN105094922A (en) * 2015-08-17 2015-11-25 北京奇虎科技有限公司 Application installation-free operation control method and device
CN105224472A (en) * 2015-10-22 2016-01-06 上海新储集成电路有限公司 A kind of matching process and system finding conventional content
CN105700930A (en) * 2016-02-22 2016-06-22 青岛海信移动通信技术股份有限公司 Application accelerating method and device for embedded operation system
CN108572965A (en) * 2017-03-08 2018-09-25 阿里巴巴集团控股有限公司 A kind of resource loading method and device
CN108647096A (en) * 2018-05-16 2018-10-12 Oppo广东移动通信有限公司 Method of adjustment, device, storage medium and the mobile terminal of system resource configuration

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"A microkernel-based resource loading manager on geographic information technology platform";Fan Zhang 等;《 2013 3rd International Conference on Consumer Electronics, Communications and Networks》;20140109;第15-18页 *
"资源动态加载算法在农机仿真平台中的实现";师翊 等;《网络安全技术与应用》;20140915(第9期);第34-36页 *

Also Published As

Publication number Publication date
CN110083416A (en) 2019-08-02

Similar Documents

Publication Publication Date Title
US10599336B2 (en) Method of displaying content and electronic device adapted to the same
MX2007005771A (en) Searching for and providing objects using byte-by-byte comparison.
US8335997B2 (en) Electronic device and method for sorting menu options of a program menu in the electronic device
CN105224858A (en) A kind of interface for password input display packing and system
US20120221969A1 (en) Scrollable list navigation using persistent headings
CN108804188A (en) Changing an interface skin method and device
CN105224318B (en) information processing method and electronic equipment
CN106227483B (en) Display control method and mobile terminal
CN106126486A (en) Temporal information coded method, encoded radio search method, coding/decoding method and device
CN106062693B (en) Desktop sharing method and mobile terminal
US20200050349A1 (en) Electronic device and screenshot capturing method
CN113467868A (en) Method and device for creating equipment resources
CN105740454A (en) Display method and device of picture folder and electronic equipment
US20120072458A1 (en) System and method for providing search keyword list
CN113975788A (en) Entry indexing method and device, computer equipment and storage medium
CN109358927B (en) Application program display method and device and terminal equipment
CN110083416B (en) Resource loading method and device
EP3306823A1 (en) Encoding program, encoding apparatus and encoding method
CN112947827A (en) Page display method and device, computer equipment and storage medium
CN110196661B (en) Interface interaction method and device and electronic equipment
CN110032562B (en) Method and device for storing business records
WO2018177414A1 (en) Data processing method, data processing device, computing device, and storage medium
CN114995699A (en) Interface interaction method and device
US11138209B2 (en) Data processing system and method
CN112036133A (en) File saving method and device, electronic equipment and storage medium

Legal Events

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