CN112506584B - Resource file loading method, device, equipment, storage medium and product - Google Patents

Resource file loading method, device, equipment, storage medium and product Download PDF

Info

Publication number
CN112506584B
CN112506584B CN202011522105.5A CN202011522105A CN112506584B CN 112506584 B CN112506584 B CN 112506584B CN 202011522105 A CN202011522105 A CN 202011522105A CN 112506584 B CN112506584 B CN 112506584B
Authority
CN
China
Prior art keywords
resource
loaded
resource file
file
target application
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
CN202011522105.5A
Other languages
Chinese (zh)
Other versions
CN112506584A (en
Inventor
梁轩然
钟普
杜威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202011522105.5A priority Critical patent/CN112506584B/en
Publication of CN112506584A publication Critical patent/CN112506584A/en
Application granted granted Critical
Publication of CN112506584B publication Critical patent/CN112506584B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/445Program loading or initiating
    • G06F9/44568Immediately runnable code

Abstract

The disclosure provides a resource file loading method, a device, equipment, a storage medium and a product, and relates to the field of resource file loading. The specific implementation scheme is as follows: determining a resource file to be loaded for a target application; determining whether a local resource sharing directory contains a resource file to be loaded, wherein the resource sharing directory contains resource files shared by different applications; and loading the resource file to be loaded from the resource sharing directory under the condition that the resource sharing directory contains the resource file to be loaded. The method and the device solve the problem that the application wastes a large amount of time to download the resource file for the first time, and can improve the loading speed of the resource file.

Description

Resource file loading method, device, equipment, storage medium and product
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to the field of resource file loading.
Background
With the continuous improvement of the performance of intelligent terminals such as mobile phones, in order to provide better game experience, game manufacturers continuously increase the number of game polygon surfaces in application and the size of a mapping file, so that a great amount of time is wasted in downloading the resource file (such as mapping and model file) when the application is installed for the first time.
Disclosure of Invention
The present disclosure provides a method, apparatus, device, storage medium, and product for resource file loading.
According to an aspect of the present disclosure, there is provided a resource file loading method, applied to a client, including:
determining a resource file to be loaded for a target application;
determining whether a local resource sharing directory contains a resource file to be loaded, wherein the resource sharing directory contains resource files shared by different applications;
and loading the resource file to be loaded from the resource sharing directory under the condition that the resource sharing directory contains the resource file to be loaded.
According to another aspect of the present disclosure, there is provided a resource file loading device, applied to a client, including:
the first determining module is used for determining a resource file to be loaded aiming at the target application;
the second determining module is used for determining whether the local resource sharing directory contains the resource files to be loaded or not, and the resource sharing directory contains the resource files shared by different applications;
and the resource loading module is used for loading the resource files to be loaded from the resource sharing directory under the condition that the resource files to be loaded are contained in the resource sharing directory.
According to another aspect of the present disclosure, there is provided an electronic device including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of the embodiments of the present disclosure.
According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method of any of the embodiments of the present disclosure.
According to another aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method in any of the embodiments of the present disclosure.
According to the technology disclosed by the invention, the problem that a large amount of time is wasted for downloading the resource file by first installation of the application is solved, and the loading speed of the resource file can be improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a schematic diagram of a resource file loading method according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a resource file loading method according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a comparison of new and old resource file loading patterns from a developer perspective according to an embodiment of the present disclosure;
FIG. 4 is a comparison schematic diagram of the loading patterns of new and old resource files from the perspective of an application user according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a resource file loading device according to an embodiment of the present disclosure;
FIG. 6 is a schematic diagram of a resource file loading device according to an embodiment of the present disclosure;
FIG. 7 is a schematic diagram of a resource file loading device according to an embodiment of the present disclosure;
fig. 8 is a block diagram of an electronic device for implementing a resource file loading method of an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In order to solve the problem that a great deal of time is wasted for downloading resource files when the application is first installed, two existing implementation schemes are provided:
1. the manufacturer packages a large amount of resource files into the installation package of the application, which can cause the excessive installation package to further cause the problems of slow downloading speed, application updating coverage, slow installation speed and the like.
2. The method comprises the steps that after the application is started for the first time, a resource file is downloaded from a server corresponding to the application, and although the problem that an installation volume is too large can be solved, the problem that the initial starting time of the application is too long because the performance of the server corresponding to the application is uneven, particularly in a peak period, the downloading speed cannot be guaranteed.
An embodiment of the present disclosure provides a method for loading a resource file, which is applied to a client, as shown in fig. 1, and includes:
step S101: and determining a resource file to be loaded for the target application.
Step S102: and determining whether the local resource sharing directory contains the resource files to be loaded, wherein the resource sharing directory contains the resource files shared by different applications.
Step S103: and loading the resource file to be loaded from the resource sharing directory under the condition that the resource sharing directory contains the resource file to be loaded.
In practical applications, smart terminals such as mobile phones can be provided with various applications, such as various game applications. During application execution, various resource files, such as a map file and a model file, etc., need to be loaded. Here, the map corresponding to the map file may be overlaid on the model corresponding to the model file. The model files may include logical script files and animation script files for the model. The logical script file is a script file in the form of a component, and can execute certain logical functions after being loaded. The animation script file can be loaded to generate an animation effect.
For various game applications, the types of resource files to be loaded by different applications are the same, for example, for application a, the resource files to be loaded at least comprise resource files of trees, grasslands, houses, vehicles and the like, for application B, the resource files to be loaded at least comprise resource files of trees, grasslands, houses, weapons and the like, and for application C, the resource files to be loaded at least comprise resource files of trees, grasslands, weapons, horses and the like, and the same in these applications is that both the resource files of trees and grasslands are used. Based on the above, in the scheme, a resource sharing directory commonly used by different applications is locally created at the client, and the resource sharing directory contains resource files shared by different applications, that is, each resource file can be loaded into different applications.
Still for example, the resource sharing directory includes resource files of trees, grasslands, houses, vehicles, weapons, horses, etc., and these resource files can be shared by different applications, for application a, the required resource files of trees, grasslands, houses, vehicles, etc. can be loaded from the resource sharing directory, for application B, the required resource files of trees, grasslands, houses, weapons, etc. can be loaded from the resource sharing directory, and for application C, the required resource files of trees, grasslands, weapons, horses, etc. can be loaded from the resource sharing directory.
The above target application is the currently running application.
In the scheme, after the resource file to be loaded of the target application is determined, whether the resource file to be loaded is contained in the resource sharing directory can be determined, and the resource file to be loaded can be directly loaded from the local resource sharing directory under the condition that the resource file to be loaded is contained in the resource sharing directory, so that the problem that a large amount of time is wasted for downloading the resource file when the application is firstly installed is solved by loading the resource file from the local resource sharing directory, and the loading speed of the resource file can be improved. Compared with the prior art, on one hand, the method has the advantages that the resource files of the target application are not required to be packaged into the installation package of the target application, so that the volume of the installation package is reduced, the speed of downloading the installation package by a user is improved, the problems of slow downloading speed, game updating coverage, slow installation speed and the like caused by overlarge installation package volume are avoided, on the other hand, the method also has the advantages that the resource files are not required to be downloaded from the server corresponding to the target application when the application is started for the first time, and therefore the problems of poor performance of the server corresponding to the target application, particularly incapability of ensuring the downloading speed in a peak period, overlong initial starting time of the application caused by the overlarge downloading speed are avoided, and the loading speed of the resource files is improved.
In addition, because the resource files in the local resource sharing directory of the client can be shared by different applications, the loading requirements of different applications can be met by only storing one set of resource files locally, the resource files do not need to be stored repeatedly, and the occupied space is greatly saved.
In one embodiment, the resource file loading method may further include: and under the condition that the resource sharing directory does not contain the resource files to be loaded, downloading the resource files to be loaded from a sharing server except for the servers corresponding to the target application, wherein the sharing server stores the resource files shared by different applications.
The server corresponding to the target application is the original server of the target application, and may provide computing services for the target application. The original servers of different applications are different. And the shared server is a server other than the original server of the target application. The sharing server can provide uniform resource file sharing loading service for different applications. The shared server can select a server with good and stable performance. In addition, the sharing server may be, but is not limited to, a cloud server, i.e., a cloud platform.
In practical application, the resource files to be loaded by different applications can be predetermined, a set of resource files which can meet the requirements of the different applications is determined, and the resource files are stored in the sharing server for sharing by the different applications. And, the resource file in the shared server can be updated according to actual needs. The updated resource file may be uploaded by developers of different applications or by maintenance personnel sharing the server.
Therefore, under the condition that the resource files to be loaded are not in the local resource sharing directory, the resource files to be loaded can be downloaded from the sharing server, the sharing server has good and stable performance because the resource files are downloaded through the uniform sharing server, the performance of the server corresponding to the target application is not affected, and the peak time periods of various applications are different and can be staggered from each other, so that the peak clipping and valley filling effects are achieved, the downloading speed is improved, and the problem that the initial starting time of the application is too long because the resource files are downloaded from the server corresponding to the target application in the related art can be avoided.
In one embodiment, the resource file loading method further includes: and updating the local resource sharing directory based on the downloaded resource file to be loaded. In practical application, after the resource sharing directory is updated, the target application can load the downloaded resource file to be loaded from the resource sharing directory.
Therefore, by dynamically updating the resource sharing directory, other applications except the target application can directly load the downloaded loading resource file from the resource sharing directory when the application is required to load, so that the loading speed is improved.
In one embodiment, the resource file to be loaded is downloaded from a shared server other than the server corresponding to the target application, as shown in fig. 2, and the specific implementation may include:
step S201: and obtaining the identification information of the resource file to be loaded based on the installation information obtained during the installation of the target application.
In practical application, identification information may be set in advance for each resource file, for example, identification information such as a number may be set. When the target application is developed, the resource file required to be loaded by the target application can be downloaded from the sharing server, and development is performed based on the downloaded resource file required to be loaded. After development is completed, when the installation package of the target application is packaged, the identification information of the resource file to be loaded is packaged into the installation package. After the installation package of the target application is downloaded, the installation information obtained when the target application is installed based on the installation package contains the identification information of the resource file, so that the identification information of the resource file to be loaded can be obtained based on the installation information obtained when the target application is installed.
Step S202: generating a downloading request and sending the downloading request to the sharing server, wherein the downloading request carries identification information of the resource file to be loaded, so that the sharing server responds to the downloading request, acquires the resource file to be loaded according to the identification information of the resource file to be loaded, and sends the resource file to the client.
After receiving the downloading request of the client, the sharing server responds to the downloading request, and can analyze the identification information of the resource file to be loaded carried in the downloading request, acquire the resource file to be loaded, which is identified by the identification information of the resource file to be loaded, according to the identification information of the resource file to be loaded, and send the resource file to the client.
Step S203: and receiving the resource file to be loaded, which is sent by the sharing server, so as to realize downloading.
Therefore, the identification information of the resource file to be loaded can be obtained based on the installation information obtained when the target application is installed, and accurate downloading can be realized based on the identification information of the resource file to be loaded. In addition, when the installation package of the target application is packaged, the resource file to be loaded is not packaged into the installation package, but the identification information of the resource file to be loaded is packaged into the installation package, so that the volume occupied by the identification information of the resource file is very small, and the volume of the installation package is greatly reduced.
It should be noted that if the target application is an application that can share a resource file with other applications, which is installed locally for the first time, when it is determined that the resource sharing directory is not created locally based on the installation package installation of the target application, the resource sharing directory is created. At this time, the resource sharing directory is empty, and the resource file to be loaded is determined and updated to the resource sharing directory after being downloaded. When other applications capable of sharing the resource file are reinstalled, it is determined that the resource sharing directory is created locally, and then the resource sharing directory is not required to be created again.
In one embodiment, determining a resource file to be loaded for a target application may include: under the condition that the target application is started, determining a resource file to be loaded required by the starting of the target application; or determining the resource files to be loaded required by the current process of the target application in the process after the target application is started. Here, the case where the target application is started may include a case where the target application is started for the first time, and may include a case where each time after the first start is started. Thus, when in starting, the resource files required by starting are loaded, and the starting can be performed quickly. In the running process of the target application, when the current process needs to load the resource file, the resource file is loaded again, and the whole process does not need to be loaded, so that the processing speed is improved.
A specific application scenario is taken as an example, and a resource file loading method provided by the embodiment of the present disclosure is described in more detail below.
In the application scene, the aimed application is a plurality of game applications, and the applications can be installed in intelligent terminals such as mobile phones and the like and used by application users.
The embodiment provides a resource file sharing service cloud platform (i.e. a sharing server), which is used as a server, and can integrate and store all common resource files, such as a map file, a model file (including a logic script file and an animation script file), and the like at the server.
Specifically, the resource file sharing cloud platform of the embodiment is divided into two parts:
a first part: the resource files share a cloud platform software development kit (Software Development Kit, SDK).
An SDK is a collection of development tools used by software engineers to build application software for a particular software package, software framework, hardware platform, operating system, etc. An application developer of an application vendor may develop an application based on the SDK. In the process of application development, an application developer can select a required mapping file and a required model file from a resource file sharing cloud platform and integrate the mapping file and the model file into the application.
A second part: the resource files share Yun Pingtai cloud storage services.
After an application user downloads an installation package, the application downloads an application developer from a resource file sharing cloud platform to select an integrated resource file after the application is started; if multiple applications use the same resource file, the applications will share the resource file and will not repeatedly occupy the resource.
The old resource file loading mode and the new resource file loading mode (i.e., the publicly provided resource file loading method) are described in comparison with the developer perspective and the application user perspective.
As shown in fig. 3, from the developer perspective, the old resource file loading mode:
and after the development is completed, the resource files are packed into an application installation package, when an application user downloads the application installation package, a large number of resource files cause the installation package to be excessively large, and the application user needs a large amount of waiting time for downloading, so that the resource files can be obtained after the application is installed.
As shown in fig. 3, from the developer perspective, the new resource file loading mode:
the application developer downloads the resource files required to be loaded by the application from the resource file sharing platform, performs application development based on the application SDK and the downloaded resource files, packages the application installation package after the development is completed, and the installation package does not need to contain the resource files and can contain the identification information of the resource files, so that the volume of the installation package is reduced. And after the application is installed, the application user automatically acquires resources from the network, namely, downloads the resource files to be loaded from the uniform resource file sharing cloud platform, so that the downloading speed is improved.
As shown in fig. 4, from the application user perspective, the old resource file loading mode:
for application a, the resource files of trees, grasslands, houses, vehicles and the like for application a to load are stored separately.
For application B, the resource files of trees, grasslands, houses, weapons, etc. for application B to load are stored separately.
For application C, the resource files of trees, grasslands, weapons, horses and the like for application C to load are stored separately.
It can be seen that in the old resource file loading mode, the resource files of trees, grasslands, houses and weapons are repeatedly stored.
As shown in fig. 4, in the application user perspective, the new resource file loading mode:
a set of resource files such as trees, grasslands, houses, weapons, vehicles, horses and the like downloaded from the resource file sharing cloud platform are stored in a resource sharing directory.
Application a can load tree, grass, house, vehicle, etc. resource files from the resource sharing directory.
Application B may load tree, lawn, house, weapon, etc. resource files from the resource sharing directory.
Application C can load tree, grass, weapon, horse and other resource files from the resource sharing directory.
Therefore, in the new resource file loading mode, only one set of resource files is needed to be stored locally, so that the resource files can be used by a plurality of applications, and the occupied space is saved.
Therefore, a set of platform for sharing the resource files is provided for application developers, unified resource loading service is provided for different applications, application manufacturers do not need to pack the commonly used model files and map files of the applications in an installation package, the volume of the installation package is reduced, after an application user downloads the installation package for installing the applications, the application can download the resource files from the resource file sharing cloud platform during resource file loading, and the user downloading speed is improved. If multiple applications in the intelligent terminal such as the user mobile phone share the same resource file, repeated downloading is not needed, so that the purpose of saving the storage space of the user mobile phone in the intelligent terminal is achieved.
The embodiment of the disclosure also provides a resource file loading device, which is applied to a client, as shown in fig. 5, and includes:
a first determining module 501, configured to determine a resource file to be loaded for a target application;
a second determining module 502, configured to determine whether a local resource sharing directory includes a resource file to be loaded, where the resource sharing directory includes resource files shared by different applications;
the resource loading module 503 is configured to load, in a case where the resource sharing directory contains a resource file to be loaded, the resource file to be loaded from the resource sharing directory.
In one embodiment, as shown in fig. 6, the method further includes a resource download module 504 configured to:
and under the condition that the resource sharing directory does not contain the resource files to be loaded, downloading the resource files to be loaded from a sharing server except for the servers corresponding to the target application, wherein the sharing server stores the resource files shared by different applications.
In one embodiment, as shown in fig. 7, the method further includes a catalog update module 505 for:
and updating the local resource sharing directory based on the downloaded resource file to be loaded.
In one embodiment, the resource download module 504 is specifically configured to:
obtaining identification information of a resource file to be loaded based on installation information obtained when the target application is installed;
generating a downloading request and sending the downloading request to a sharing server, wherein the downloading request carries identification information of a resource file to be loaded, so that the sharing server responds to the downloading request, acquires the resource file to be loaded according to the identification information of the resource file to be loaded and sends the resource file to a client;
and receiving the resource file to be loaded, which is sent by the sharing server, so as to realize downloading.
In one embodiment, the first determining module 501 is specifically configured to:
under the condition that the target application is started, determining a resource file to be loaded required by the starting of the target application;
or determining the resource files to be loaded required by the current process of the target application in the process after the target application is started.
The functions of each module in each device of the embodiments of the present disclosure may be referred to the corresponding description in the above method for loading resource files, which is not described herein again.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
Fig. 8 illustrates a schematic block diagram of an example electronic device 800 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 8, the apparatus 800 includes a computing unit 801 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 802 or a computer program loaded from a storage unit 808 into a Random Access Memory (RAM) 803. In the RAM803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM803 are connected to each other by a bus 804. An input output (I/O) interface 805 is also connected to the bus 804.
Various components in device 800 are connected to I/O interface 805, including: an input unit 806 such as a keyboard, mouse, etc.; an output unit 807 such as various types of displays, speakers, and the like; a storage unit 808, such as a magnetic disk, optical disk, etc.; and a communication unit 809, such as a network card, modem, wireless communication transceiver, or the like. The communication unit 809 allows the device 800 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 801 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 801 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 801 performs the respective methods and processes described above, such as a resource file loading method. For example, in some embodiments, the resource file loading method may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 808. In some embodiments, part or all of the computer program may be loaded and/or installed onto device 800 via ROM 802 and/or communication unit 809. When a computer program is loaded into RAM803 and executed by computing unit 801, one or more steps of the resource file loading method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the resource file loading method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel, sequentially, or in a different order, provided that the desired results of the disclosed aspects are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (10)

1. A resource file loading method is applied to a client and comprises the following steps:
determining a resource file to be loaded for a target application;
determining whether a local resource sharing directory contains the resource files to be loaded or not, wherein the resource sharing directory contains resource files shared by different applications, the same resource file can be loaded into the different applications, and the loading requirements of the different applications can be met by locally storing only one set of resource files without repeatedly storing the resource files;
loading the resource file to be loaded from the resource sharing directory under the condition that the resource sharing directory contains the resource file to be loaded;
and under the condition that the resource file to be loaded is not contained in the resource sharing directory, downloading the resource file to be loaded from a sharing server outside the original target application server corresponding to the target application, wherein the original application servers of different applications are different, the sharing server stores the resource file shared by the different applications and is used for providing uniform resource file sharing loading service for the different applications, the resource file to be loaded of the different applications is determined in advance, and a set of resource files capable of meeting the different applications is determined.
2. The method of claim 1, further comprising:
and updating the local resource sharing directory based on the downloaded resource file to be loaded.
3. The method of claim 1, wherein the downloading the resource file to be loaded from a shared server other than the server to which the target application corresponds comprises:
obtaining the identification information of the resource file to be loaded based on the installation information obtained when the target application is installed;
generating a downloading request and sending the downloading request to the sharing server, wherein the downloading request carries identification information of the resource file to be loaded, so that the sharing server responds to the downloading request, acquires the resource file to be loaded according to the identification information of the resource file to be loaded and sends the resource file to the client;
and receiving the resource file to be loaded, which is sent by the sharing server, so as to realize downloading.
4. The method of claim 1, wherein the determining a resource file to load for a target application comprises:
under the condition that the target application is started, determining the resource file to be loaded required by the starting of the target application;
or determining the resource file to be loaded required by the current process of the target application in the process after the target application is started.
5. A resource file loading device, applied to a client, comprising:
the first determining module is used for determining a resource file to be loaded aiming at the target application;
the second determining module is used for determining whether the local resource sharing directory contains the resource files to be loaded or not, wherein the resource sharing directory contains resource files shared by different applications;
the resource loading module is used for loading the resource files to be loaded from the resource sharing directory under the condition that the resource files to be loaded are contained in the resource sharing directory, wherein the same resource files can be loaded into different applications, and the loading requirements of the different applications can be met by locally storing only one set of resource files without repeatedly storing the resource files;
the resource downloading module is used for downloading the resource file to be loaded from a shared server outside the original target application server corresponding to the target application under the condition that the resource file to be loaded is not contained in the resource sharing directory, the original application servers of different applications are different, the shared server stores the resource files shared by different applications, the resource file to be loaded of different applications is preset, and a set of resource files capable of meeting the different applications is determined.
6. The apparatus of claim 5, further comprising a catalog update module to:
and updating the local resource sharing directory based on the downloaded resource file to be loaded.
7. The apparatus of claim 5, wherein the resource download module is specifically configured to:
obtaining the identification information of the resource file to be loaded based on the installation information obtained when the target application is installed; generating a downloading request and sending the downloading request to the sharing server, wherein the downloading request carries identification information of the resource file to be loaded, so that the sharing server responds to the downloading request, acquires the resource file to be loaded according to the identification information of the resource file to be loaded and sends the resource file to the client; and receiving the resource file to be loaded, which is sent by the sharing server, so as to realize downloading.
8. The apparatus of claim 5, wherein the first determining module is specifically configured to:
under the condition that the target application is started, determining the resource file to be loaded required by the starting of the target application; or determining the resource file to be loaded required by the current process of the target application in the process after the target application is started.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-4.
10. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1-4.
CN202011522105.5A 2020-12-21 2020-12-21 Resource file loading method, device, equipment, storage medium and product Active CN112506584B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011522105.5A CN112506584B (en) 2020-12-21 2020-12-21 Resource file loading method, device, equipment, storage medium and product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011522105.5A CN112506584B (en) 2020-12-21 2020-12-21 Resource file loading method, device, equipment, storage medium and product

Publications (2)

Publication Number Publication Date
CN112506584A CN112506584A (en) 2021-03-16
CN112506584B true CN112506584B (en) 2023-10-03

Family

ID=74921843

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011522105.5A Active CN112506584B (en) 2020-12-21 2020-12-21 Resource file loading method, device, equipment, storage medium and product

Country Status (1)

Country Link
CN (1) CN112506584B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113407347B (en) * 2021-06-30 2023-02-24 北京百度网讯科技有限公司 Resource scheduling method, device, equipment and computer storage medium
CN113505109A (en) * 2021-07-27 2021-10-15 北京字节跳动网络技术有限公司 File sharing method and device, computer equipment and storage medium
CN116414474A (en) * 2021-12-29 2023-07-11 北京字跳网络技术有限公司 Resource file loading method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103780700A (en) * 2014-01-26 2014-05-07 长沙裕邦软件开发有限公司 Application system and method for achieving compatibility and sharing among multi-source heterogeneous systems
WO2018045977A1 (en) * 2016-09-09 2018-03-15 腾讯科技(深圳)有限公司 Shared resource display method, device and storage medium
CN110377850A (en) * 2019-06-12 2019-10-25 五八有限公司 Resource file loading method, device, electronic equipment and storage medium
CN110445526A (en) * 2019-07-10 2019-11-12 视联动力信息技术股份有限公司 Data transmission method, device, system, electronic equipment and storage medium
CN110719319A (en) * 2019-09-18 2020-01-21 维沃移动通信有限公司 Resource sharing method, device, terminal equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103780700A (en) * 2014-01-26 2014-05-07 长沙裕邦软件开发有限公司 Application system and method for achieving compatibility and sharing among multi-source heterogeneous systems
WO2018045977A1 (en) * 2016-09-09 2018-03-15 腾讯科技(深圳)有限公司 Shared resource display method, device and storage medium
CN110377850A (en) * 2019-06-12 2019-10-25 五八有限公司 Resource file loading method, device, electronic equipment and storage medium
CN110445526A (en) * 2019-07-10 2019-11-12 视联动力信息技术股份有限公司 Data transmission method, device, system, electronic equipment and storage medium
CN110719319A (en) * 2019-09-18 2020-01-21 维沃移动通信有限公司 Resource sharing method, device, terminal equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
APP模式移动图书馆共享文化社区的构建研究;张凌睿;杜仕勇;;图书馆(第09期);全文 *
Geng Qingzhai ; Zhu Xingming.Development of scientific data sharing of water resources and sharing service system construction in China.IEEE.2010,全文. *
基于服务化技术的个人数据资源共享方法;宋梦蝶;王枫;武延军;;计算机系统应用(第09期);全文 *

Also Published As

Publication number Publication date
CN112506584A (en) 2021-03-16

Similar Documents

Publication Publication Date Title
CN112506584B (en) Resource file loading method, device, equipment, storage medium and product
CN110391938B (en) Method and apparatus for deploying services
CN109840096A (en) The installation method and device of operating system
CN110502256A (en) A kind of method for upgrading software, terminal and storage medium
CN110888658B (en) Method and device for dynamically changing function modules in application program and storage medium
EP4060496A2 (en) Method, apparatus, device and storage medium for running inference service platform
CN109766319B (en) Compression task processing method and device, storage medium and electronic equipment
CN112671892B (en) Data transmission method, device, electronic equipment and medium
CN111865676B (en) Method, device, server and storage medium for updating and checking configuration file
CN113434230A (en) Jump control method and device for H5 page, storage medium and electronic device
CN113126994A (en) Hotspot code processing method and device, electronic equipment and storage medium
CN113596920B (en) Flow control method, device, electronic equipment and storage medium
CN113778546A (en) Method and device for gray scale optimization
CN115857878A (en) Development framework generation method and application method
CN109840156B (en) Data caching method and equipment, storage medium and terminal thereof
CN115004667A (en) Information pushing method and device, electronic equipment and computer readable medium
CN113900734B (en) Application program file configuration method, device, equipment and storage medium
CN114157917B (en) Video editing method and device and terminal equipment
CN113741937B (en) Application updating method and device for cloud terminal and computer program product
CN113535187B (en) Service online method, service updating method and service providing method
CN114489715A (en) Method, device, equipment and medium for upgrading operating system of cloud mobile phone
CN116737198A (en) Firmware pushing method, device, equipment and storage medium
CN116233051A (en) Page sharing method, device and equipment for applet and storage medium
CN115454418A (en) Method and device for sharing front-end code, electronic equipment and storage medium
CN114327551A (en) Android system upgrading method and device and readable 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