CN112579096A - Method, device, equipment and medium for compiling and loading small program starting file - Google Patents

Method, device, equipment and medium for compiling and loading small program starting file Download PDF

Info

Publication number
CN112579096A
CN112579096A CN202011509061.2A CN202011509061A CN112579096A CN 112579096 A CN112579096 A CN 112579096A CN 202011509061 A CN202011509061 A CN 202011509061A CN 112579096 A CN112579096 A CN 112579096A
Authority
CN
China
Prior art keywords
page
frequency access
file
data
access
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011509061.2A
Other languages
Chinese (zh)
Other versions
CN112579096B (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 CN202011509061.2A priority Critical patent/CN112579096B/en
Publication of CN112579096A publication Critical patent/CN112579096A/en
Application granted granted Critical
Publication of CN112579096B publication Critical patent/CN112579096B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • 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
    • G06F9/44578Preparing or optimising for loading

Abstract

The application discloses a compiling and loading method, device, equipment and medium for an applet starting file, and relates to the technical field of program front-end starting and cloud computing. The specific implementation scheme is as follows: determining a high-frequency access page in an applet page; determining shared access data, associated data of the high-frequency access pages and associated data of non-high-frequency access pages according to the high-frequency access pages; compiling according to the shared access data to generate a shared entry file, compiling according to the associated data of the high-frequency access page to generate a high-frequency access file, and compiling according to the associated data of the non-high-frequency access page to generate a non-high-frequency access file; wherein the shared entry file, the high frequency access file, and the non-high frequency access file are used to be sequentially loaded according to a hit page when the applet is started. The method and the device for loading the small program page can reduce the volume of the entry file, thereby improving the loading performance of the small program page and reducing the starting and loading duration of the small program.

Description

Method, device, equipment and medium for compiling and loading small program starting file
Technical Field
The present application relates to the field of computer technologies, and in particular, to a program front-end booting technology, and in particular, to a method, an apparatus, a device, and a medium for compiling and loading an applet boot file.
Background
The mode of running the small program by providing the running environment through the host program is more and more widely applied to internet services. Generally, an application program (APP) installed in a terminal device may serve as a host program. The small program can directly open the page of the small program through the host program without downloading and installing by a user, and the service function of the small program is realized.
Launching the applet in the host is accomplished by loading and opening the applet's page, specifically by loading the entry file and rendering the presentation page based on the data in the entry file.
In the prior art, the size of an entry file is generally too large when an applet is started, so that the startup and loading of the applet are long, and the user experience is poor.
Disclosure of Invention
The disclosure provides a compiling and loading method, a compiling and loading device, equipment and a medium of an applet starting file, so as to accelerate the applet starting speed.
According to an aspect of the present disclosure, there is provided a compiling method of an applet starting file, including:
determining a high-frequency access page in an applet page;
determining shared access data, associated data of the high-frequency access pages and associated data of non-high-frequency access pages according to the high-frequency access pages;
compiling according to the shared access data to generate a shared entry file, compiling according to the associated data of the high-frequency access page to generate a high-frequency access file, and compiling according to the associated data of the non-high-frequency access page to generate a non-high-frequency access file;
wherein the shared entry file, the high frequency access file, and the non-high frequency access file are used to be sequentially loaded according to a hit page when the applet is started.
According to another aspect of the present disclosure, there is provided a method for loading an applet starting file, where the applet starting file is compiled by using the method for compiling the applet starting file provided by the present disclosure, and the method includes:
acquiring a page starting request in an applet, and determining a hit page according to the page starting request;
loading the shared entry file in an applet;
and identifying the hit page as a high-frequency access page or a non-high-frequency access page, and loading the high-frequency access file or the non-high-frequency access file corresponding to the page according to the identification result of the hit page.
According to another aspect of the present disclosure, there is provided a compiling apparatus of an applet starting file, including:
the high-frequency access page determining module is used for determining a high-frequency access page in the small program page;
the data determining module is used for determining shared access data, associated data of the high-frequency access page and associated data of a non-high-frequency access page according to the high-frequency access page;
the file generation module is used for compiling and generating a shared entry file according to the shared access data, compiling and generating a high-frequency access file according to the associated data of the high-frequency access page, and compiling and generating a non-high-frequency access file according to the associated data of the non-high-frequency access page;
wherein the shared entry file, the high frequency access file, and the non-high frequency access file are used to be sequentially loaded according to a hit page when the applet is started.
According to another aspect of the present disclosure, there is provided an apparatus for loading an applet starting file, where the applet starting file is compiled by using the apparatus for compiling an applet starting file provided by the present disclosure, the apparatus including:
the hit page determining module is used for acquiring a page starting request in the applet and determining a hit page according to the page starting request;
the shared entry file loading module is used for loading the shared entry file in the applet;
and the file loading module is used for identifying the hit page as a high-frequency access page or a non-high-frequency access page and loading the high-frequency access file or the non-high-frequency access file corresponding to the page according to the identification result of the hit page.
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 content of the first and second substances,
the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the compiling and loading method of the applet starting file according to any one of the embodiments of the application.
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 a method of compiling and loading an applet launch file according to any one of the embodiments of the present application.
According to the technical embodiment of the application, the volume of the entry file can be reduced, so that the loading performance of the small program page is improved, and the starting and loading time of the small program is shortened.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
FIG. 1A is a schematic structural diagram of an existing applet startup file disclosed in an embodiment of the present application;
FIG. 1B is a flowchart of a method for compiling an applet start file according to an embodiment of the present application;
FIG. 2A is a flowchart of a method for compiling an applet start file according to an embodiment of the present application;
FIG. 2B is a schematic structural diagram of an optimized applet launch file according to an embodiment of the disclosure;
FIG. 3A is a schematic diagram of an existing applet boot file loading disclosed in an embodiment of the present application;
FIG. 3B is a flowchart of a method for loading an applet start file according to an embodiment of the disclosure;
FIG. 3C is a schematic diagram of an optimized applet launch file loading according to an embodiment of the present application;
FIG. 4 is a schematic structural diagram of an apparatus for compiling an applet start-up file according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of a loading apparatus for an applet start file according to an embodiment of the present disclosure;
fig. 6 is a block diagram of an electronic device for implementing the method for compiling and loading the applet starting file according to the embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those 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 application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1A is a schematic structural diagram of an existing applet starting file disclosed in an embodiment of the present application, and as shown in fig. 1A, an applet starting file 10 includes a main package 11, a first sub-package 12, and a second sub-package 13, where the main package 11 corresponds to a first entry file 14, the sub-package 12 corresponds to a second entry file 15, the sub-package 13 corresponds to a third entry file 16, and the entry file 14 includes global logic data 17, first page data 18 corresponding to all main package pages in the main package 11, first reference data 19 corresponding to all main package pages in the main package 11, and second reference data 20 corresponding to all sub-package pages in the sub-packages 12 and 13. The entry file 15 includes second page data 21 corresponding to all of the packetized pages in the packetized 12. The entry file 16 includes third page data 22 corresponding to all of the packetized pages in the packetized 13. This embodiment only uses two sub-packets: the sub-package 12 and the sub-package 13 are examples, and the number of sub-packages in the startup file is not limited.
As can be seen from fig. 1A, the existing applet start file has the following disadvantages:
1) the entry file corresponding to the main package not only stores the reference data corresponding to the page of the main package, but also stores the reference data corresponding to the page of the sub package, so that the volume of the entry file corresponding to the main package is large, when the page of the main package is requested, the page loading performance of the small program is seriously influenced, and the user experience is poor.
2) Reference data corresponding to the sub-package pages stored in the entry file corresponding to the main package belong to useless data for the main package, and the small program page loading performance is necessarily affected by the loading and executing of the part of data.
3) For a high-access-frequency page in a main package, for example, an initial page, when the high-access-frequency page is hit, as the entry file corresponding to the main package stores associated data of multiple pages, unnecessary data, for example, associated data of a non-high-frequency access page, is inevitably loaded, so that the page loading performance is affected, and further performance optimization cannot be performed on the high-access-frequency page.
Fig. 1B is a flowchart of a compiling method of an applet starting file according to an embodiment of the present application, which may be applied to a case where the applet starting file is compiled automatically. The method of the embodiment may be performed by an applet initiating file compiling apparatus, which may be implemented by software and/or hardware, and may be integrated on any electronic device having computing capability.
As shown in fig. 1B, the compiling method of the applet starting file disclosed in this embodiment may include:
s101, determining a high-frequency access page in the applet page.
The high-frequency access page refers to a page with higher access frequency in the applet page, such as a default initial page of the applet, or a user login page of the applet, and the like. The access frequency can be preset by the small program developer according to experience or access statistical data.
In one embodiment, the number of times of access of each page in the applet is compared with a number threshold, and the page with the number of times of access greater than or equal to the number threshold is used as a high-frequency access page.
In another embodiment, the accessed time length of each page of the applet is compared with a time length threshold, and the page with the accessed time length greater than or equal to the time length threshold is used as a high-frequency access page.
By determining the high-frequency access page in the small program page, a foundation is laid for determining shared access data according to the high-frequency access page subsequently.
S102, determining shared access data, associated data of the high-frequency access pages and associated data of the non-high-frequency access pages according to the high-frequency access pages.
The shared access data refers to associated data shared by at least two pages, the non-high-frequency access page refers to a page other than the high-frequency access page in the applet page, the associated data includes page data of the page and reference data corresponding to a resource referred by the page, the page data refers to data related to page display, such as color, font size or animation type, and the reference data refers to general logic data acquired at a referenced resource (such as a database) and used for generating the page, such as a calculation mode of a date or request logic of the data.
In one embodiment, each page of the applet is parsed to determine page data of each page, and preset operations are performed on the page data of each page to determine reference data of each page, wherein the preset operations include, but are not limited to, compiling, encoding, source code analysis, or the like. And then the reference data which are simultaneously referenced by a preset number of high-frequency access pages in each reference data are used as shared access data. According to the determined high-frequency access page, using the page data of the high-frequency access page and reference data except the shared access data as associated data of the high-frequency access page; and according to the determined high-frequency access page, determining a non-high-frequency access page except the high-frequency access page from the small program page, and taking the page data of the non-high-frequency access page and the reference data except the shared access data as the associated data of the non-high-frequency access page.
The shared access data, the associated data of the high-frequency access page and the associated data of the non-high-frequency access page are determined according to the high-frequency access page, so that the data included in the small program page are classified, and a foundation is laid for generating different compiled files according to different types of data subsequently.
S103, compiling according to the shared access data to generate a shared entry file, compiling according to the associated data of the high-frequency access page to generate a high-frequency access file, and compiling according to the associated data of the non-high-frequency access page to generate a non-high-frequency access file; wherein the shared entry file, the high frequency access file, and the non-high frequency access file are used to be sequentially loaded according to a hit page when the applet is started.
In one implementation mode, the shared access data, the associated data of the high-frequency access page and the associated data of the non-high-frequency access page are compiled respectively through a preset compiling program, and compiling results corresponding to the three data are obtained through five stages including lexical analysis, syntax analysis, semantic inspection, intermediate code generation, code optimization and object code generation. And taking a compiling result corresponding to the shared access data as a shared entry file, taking a compiling result corresponding to the associated data of the high-frequency access page as a high-frequency access file, and taking a compiling result corresponding to the associated data of the non-high-frequency access page as a non-high-frequency access file. The shared entry file comprises shared access data and global logic data, wherein the shared access data comprises global attributes and variables of the small programs.
When the host platform end obtains a starting request of a user for any page of the small program, the starting request is issued to the small program, so that the small program loads the shared entry file, the high-frequency access file and the non-high-frequency access file according to the sequence of the hit pages.
The compiling method for the applet starting file provided in this embodiment compiles the page data and the reference data of the page in the applet logic layer, and if the applet includes a view layer in addition to the logic layer, the data in the view layer needs to be compiled separately.
According to the technical scheme of the embodiment, the high-frequency access page in the small program page is determined, the shared access data, the associated data of the high-frequency access page and the associated data of the non-high-frequency access page are further determined according to the high-frequency access page, the shared entry file is compiled according to the shared access data to generate a high-frequency access file, the associated data of the high-frequency access page is compiled according to the associated data of the high-frequency access page to generate the non-high-frequency access file, and the shared entry file only contains the shared access data. In addition, the high-frequency access page and the non-high-frequency access page are respectively compiled into the startup file, so that the high-frequency access file corresponding to the high-frequency access page only contains the associated data of the high-frequency access page, when the high-frequency access page is hit, other non-essential data does not need to be loaded, and the loading performance of the high-frequency access page is optimized.
Fig. 2A is a flowchart of a compiling method of an applet starting file disclosed in an embodiment of the present application, which is further optimized and expanded based on the above technical solution, and can be combined with the above optional embodiments.
As shown in fig. 2A, the method may include:
s201, obtaining a high-frequency access page identifier from a configuration file of the applet, and determining the high-frequency access page according to the high-frequency access page identifier.
In one embodiment, related technicians determine a high-frequency access page and a non-high-frequency access page in advance according to the access times and/or the access time of each page in the applet, add different page identifiers to the high-frequency access page and the non-high-frequency access page, and store the page identifiers in a configuration file of the applet. And performing condition search in the applet configuration file to obtain a high-frequency access page identifier, and further determining a corresponding high-frequency access page according to the high-frequency access page identifier.
S202, compiling page data of each page in the applet to determine reference data of resources referenced by each page, and determining the shared access data according to the reference condition of each reference data by the high-frequency access page.
In one embodiment, reference data referenced by more than a preset number of high-frequency access pages is used as shared access data, wherein the preset number can be adjusted according to actual requirements.
Optionally, the step of "determining that the shared access data includes the reference condition of each reference data by the high-frequency access page" in S202 includes:
determining reference data which is simultaneously referenced by at least two high-frequency access pages as shared access data; and/or determining the reference data simultaneously referenced by the high-frequency access page and the non-high-frequency access page in the sub-package as shared access data.
The pages of the small program comprise a main packet page and at least one sub-packet page, the high-frequency access page is the main packet page, the non-high-frequency access pages can be the main packet page or the sub-packet page, and the sub-packet pages are all non-high-frequency access pages. The default launch page and/or control bar page is placed in the master package, along with some common resources and/or scripts that are needed by all subcontractors. The sub-packages are divided according to the requirements of the applet developers so as to reduce the volume of the applets.
For example, the reference data a is referred to by page 1, page 2, and page 3, where page 1 and page 2 are high-frequency access pages, and page 3 is a non-high-frequency access page, and then the reference data a is shared access data. For another example, the reference data B is referred to by page 4, page 5, and page 6, where page 4 is a high-frequency access page, page 5 is a non-high-frequency access page in the main package, and page 6 is a non-high-frequency access page in the sub-package, and then the reference data B is shared access data.
S203, determining the associated data of the high-frequency access page according to the page data of the high-frequency access page and the individual reference data of the high-frequency access page.
Wherein the individual reference data of the high-frequency access page is reference data of the high-frequency access page except the shared access data. In other words, the individual reference data of any high-frequency access page can only be referenced by that high-frequency access page, but not by other high-frequency access pages.
S204, determining the associated data of the non-high-frequency access page according to the page data of the non-high-frequency access page and the individual reference data of the non-high-frequency access page.
Optionally, if the non-high-frequency access page is a non-high-frequency access page in the sub-package, the individual reference data of the non-high-frequency access page is: the non-high frequency access page references data other than the shared access data and the individual reference data of the high frequency access page. In other words, there is no intersection between the individual reference data of the non-high frequency-accessed pages in the sub-package and the individual reference data of the shared-access data and the high-frequency-accessed pages.
Optionally, if the non-high-frequency access page is a non-high-frequency access page in the main package, the individual reference data of the non-high-frequency access page is: the non-high frequency access page shares reference data other than the access data. In other words, the individual reference data of the non-high frequency access pages in the master package may be the same as the individual reference data of the high frequency access pages, and may also be the same as the individual reference data of the non-high frequency access pages in the subcontractor.
And S205, compiling according to the shared access data to generate a shared entry file.
S206, compiling the associated data of the non-high-frequency access pages in the main package to generate a main package non-high-frequency access file, and compiling the associated data of the non-high-frequency access pages in each sub-package to generate a sub-package non-high-frequency access file.
And the associated data of the non-high-frequency access pages comprises associated data of the non-high-frequency access pages in the main packet and associated data of the non-high-frequency access pages in the sub packet.
In one embodiment, for non-high-frequency access pages in a main package, acquiring associated data of all the non-high-frequency access pages, compiling the associated data through a preset compiler, and taking a compiling result as a main package non-high-frequency access file, that is, there is one or only one main package non-high-frequency access file in the main package. And for the non-high-frequency access pages in the sub-package, compiling the associated data of each non-high-frequency access page through a preset compiling program, and taking the compiling result as a sub-package non-high-frequency access file corresponding to the non-high-frequency access page, namely, each non-high-frequency access page in the sub-package has one sub-package non-high-frequency access file.
And S207, compiling the associated data of each high-frequency access page respectively to generate a high-frequency access file.
In one embodiment, the associated data of the high-frequency access pages are compiled through a preset compiler respectively, and the compiled result is used as a high-frequency access file corresponding to the high-frequency access page, that is, each high-frequency access page has one high-frequency access file and only one high-frequency access file.
According to the technical scheme of the embodiment, the high-frequency access page identification is obtained from the configuration file of the applet, and the high-frequency access page is determined according to the high-frequency access page identification, so that the effect of rapidly determining the high-frequency access page is achieved; compiling page data of each page in the applet to determine reference data of resources referenced by each page, and determining shared access data according to the reference condition of each reference data accessed to the page at high frequency, so that the effect of determining the shared access data is realized; determining reference data which is simultaneously referenced by at least two high-frequency access pages as shared access data; and/or determining the quoted data quoted by the high-frequency visit page and the non-high-frequency visit page in the sub-package as shared visit data, so that the effect of determining the shared visit data according to the page attribute of the quoted page of the quoted data is realized; the method comprises the steps of determining the associated data of the high-frequency access page according to the page data of the high-frequency access page and the individual quote data of the high-frequency access page, and determining the associated data of the non-high-frequency access page according to the page data of the non-high-frequency access page and the individual quote data of the non-high-frequency access page, so that the effect of classifying the page data and the quote data is realized, and a data base is laid for subsequently generating a plurality of start-up files; the method comprises the steps of compiling the associated data of the non-high-frequency access pages in the main package to generate a main package non-high-frequency access file, compiling the associated data of the non-high-frequency access pages in each sub package to generate a sub package non-high-frequency access file, and compiling the associated data of each high-frequency access page to generate a high-frequency access file, so that the effect of reducing the volume of the main package shared entry file is achieved, and the loading performance of the small program pages in the main package is optimized.
Fig. 2B is a schematic structural diagram of an optimized applet starting file disclosed in an embodiment of the present application, and as shown in fig. 2B, the applet starting file 200 includes a main package 201, a first sub-package 202, and a second sub-package 203. The main package 201 includes a shared entry file 204, a first high frequency access file 205, a second high frequency access file 206, and a main package non-high frequency access file 207. The sub-package 202 comprises a sub-package first non-high frequency access file 208 and the sub-package 203 comprises a sub-package second non-high frequency access file 209. Shared entry file 204 includes shared access data 210 and global logical data 211; high frequency access file 205 includes first page data 212 for high frequency access page 1, and first individual reference data 213 for high frequency access page 1; high frequency access file 206 includes second page data 214 for high frequency access page 2, and second individual reference data 215 for high frequency access page 2; main package non-high frequency access file 207 includes third page data 216 for main package non-high frequency access pages 1-N, and third individual reference data 217 for main package non-high frequency access pages 1-N. The packetized non-high frequency access file 208 includes fourth page data 218 of packetized non-high frequency access page 1, and fourth individual reference data 219 of packetized non-high frequency access page 1; the packetized non-high frequency access file 209 includes fifth page data 220 of the packetized non-high frequency access page 2 and fifth individual reference data 221 of the packetized non-high frequency access page 2. The implementation only provides an optional structure of the applet starting file, and the number of the sub-packages in the applet starting file and the number of the high-frequency access files are not limited at all.
Fig. 3A is a schematic diagram of loading an existing applet startup file disclosed in an embodiment of the present application, and as shown in fig. 3A, first, it is determined whether a hit page belongs to a main package or a sub-package, and if the hit page belongs to the main package, step 30 is executed to load an entry file of the main package; if the package belongs to the sub-package, step 31 is executed to load the entry file of the main package, and then step 32 is executed to load the entry file of the sub-package.
The loading performance of the starting file is low and the time consumption is long due to the fact that the size of an entry file in a main package is large in the existing small program starting file loading.
Fig. 3B is a flowchart of a method for loading an applet start file according to an embodiment of the present application, where the embodiment may be applied to a case where the applet start file is automatically loaded. The method of the embodiment may be performed by an applet initiating file loading apparatus, which may be implemented by software and/or hardware and may be integrated on any electronic device with computing capability.
As shown in fig. 3B, the method for loading the applet start file disclosed in this embodiment may include:
s301, a page starting request in the applet is obtained, and a hit page is determined according to the page starting request.
In one embodiment, after a user generates a page start request at a host platform, the host platform intercepts a route and issues the page start request to an operating applet. And the small program acquires the page starting request, analyzes the page starting request and determines a hit page corresponding to the page starting request.
S302, loading the shared entry file in the applet.
The shared entry file comprises shared access data, and the shared access data is reference data which is simultaneously referenced by at least two high-frequency access pages; and/or, reference data simultaneously referenced by the high-frequency access page and the non-high-frequency access page in the sub-package; the pages of the small program comprise a main package page and at least one sub-package page, and the high-frequency access page is the main package page.
In one embodiment, the manner of loading the shared entry file includes, but is not limited to, loading by file path or by class loading, etc.
By loading the shared entry file in the applet, the shared access number in the shared entry file can be loaded when the applet is started, so that the applet page related to the shared access number is generated.
S303, identifying the hit page as a high-frequency access page or a non-high-frequency access page, and loading the high-frequency access file or the non-high-frequency access file corresponding to the page according to the identification result of the hit page.
The high-frequency access file comprises page data of the high-frequency access page and individual reference data of the high-frequency access page data, wherein the individual reference data of the high-frequency access page is reference data of the high-frequency access page except the shared access data. The non-high-frequency access file comprises page data of the non-high-frequency access pages and individual reference data of the non-high-frequency access pages, wherein the individual reference data of the non-high-frequency access pages are reference data of the non-high-frequency access pages except the shared access data and the individual reference data of the high-frequency access pages.
Optionally, the non-high frequency access file includes a main packet non-high frequency access file and a sub packet non-high frequency access file; the individual reference data in the main package non-high-frequency access file is reference data in the main package page reference data except the shared access data and the individual reference data of the high-frequency access page; and the individual reference data in the sub-packet non-high-frequency access file is reference data in the sub-packet page reference data except the shared access data and the main packet non-high-frequency page individual reference data.
In one embodiment, the hit page is determined to be a high-frequency access page or a non-high-frequency access page according to the page identifier of the hit page, if the hit page is the high-frequency access page, the high-frequency access file is loaded, and if the hit page is the non-high-frequency access page, the non-high-frequency access file is loaded.
Optionally, the "loading the high-frequency access file or the non-high-frequency access file corresponding to the page according to the identification result of the hit page" in S303 includes the following three cases A, B and C:
A. and if the hit page is the high-frequency access page of the main package, loading the high-frequency access file.
In an embodiment, if the hit page is determined to be the high-frequency access page of the main package according to the page identifier of the hit page, the small loading program starts a high-frequency access file corresponding to the hit page in the file main package.
B. And if the hit page is the non-high-frequency access page of the main package, loading the non-high-frequency access file of the main package.
In one embodiment, if the hit page is determined to be a non-high-frequency access page of the main package according to the page identifier of the hit page, the applet is loaded to start a main package non-high-frequency access file in the file main package.
C. And if the hit page is the sub-packaged non-high-frequency access page, loading the main package non-high-frequency access file and the sub-packaged non-high-frequency access file.
In one embodiment, if the hit page is determined to be a sub-packaged non-high-frequency access page according to the page identifier of the hit page, the main-package non-high-frequency access file in the main package of the starting file of the applet is loaded first, and then the sub-packaged non-high-frequency access file in the sub-package corresponding to the hit page is loaded.
Loading a high-frequency access file if the hit page is a high-frequency access page of the main package; if the hit page is a non-high-frequency access page of the main package, loading the non-high-frequency access file of the main package; if the hit page is a sub-packaged non-high-frequency access page, the main-package non-high-frequency access file and the sub-packaged non-high-frequency access file are loaded, so that the corresponding access files are respectively loaded according to the hit pages of different types, the problem of loading useless resources is solved, and the loading efficiency is improved.
The method for loading the applet start file provided in this embodiment loads the start file in the applet logic layer, and if the applet includes a view layer in addition to the logic layer, it is necessary to load the page in the view layer after the start file in the logic layer is completely loaded.
According to the technical scheme of the embodiment, the page starting request in the applet is obtained, the hit page is determined according to the page starting request, the shared entry file in the applet is loaded, the hit page is finally identified to be the high-frequency access page or the non-high-frequency access page, and the high-frequency access file or the non-high-frequency access file corresponding to the page is loaded according to the identification result of the hit page, so that the effect of respectively loading the corresponding access files according to the hit pages of different types is achieved, the problem of low loading performance caused by the fact that all data are compiled in one entry file in the prior art is solved, the loading performance is greatly improved, and the loading time is shortened.
Fig. 3C is a schematic diagram of loading an optimized applet startup file disclosed in an embodiment of the present application, and as shown in fig. 3C, it is first determined whether a hit page belongs to a main package or a sub package, if the hit page belongs to a sub package, step 310 is first executed to load a shared entry file in the applet, step 311 is then executed to load a main package non-high frequency access file in the main package of the applet startup file, and step 312 is finally executed to load a sub package non-high frequency access file in the sub package corresponding to the hit page. If the target page belongs to the main package, continuously judging whether the target page is a high-frequency access page, if so, executing a step 313 to load a shared entry file in the applet, and then executing a step 314 to load the applet to start a high-frequency access file corresponding to the target page in the main package of the file; if not, step 315 is executed to load the shared entry file in the applet, and then step 316 is executed to load the applet to start the non-high frequency access file of the main package in the file main package.
Fig. 4 is a schematic structural diagram of an applet starting file compiling apparatus disclosed in an embodiment of the present application, which may be applied to a case where an applet starting file is automatically compiled. The device of the embodiment can be implemented by software and/or hardware, and can be integrated on any electronic equipment with computing capability.
As shown in fig. 4, the compiling apparatus 40 of the applet starting file disclosed in this embodiment may include a high-frequency access page determining module 41, a data determining module 42 and a file generating module 43, wherein:
a high-frequency access page determining module 41, configured to determine a high-frequency access page in the applet page;
a data determining module 42, configured to determine, according to the high-frequency access page, shared access data, associated data of the high-frequency access page, and associated data of a non-high-frequency access page;
the file generating module 43 is configured to compile to generate a shared entry file according to the shared access data, compile to generate a high-frequency access file according to the associated data of the high-frequency access page, and compile to generate a non-high-frequency access file according to the associated data of the non-high-frequency access page;
wherein the shared entry file, the high frequency access file, and the non-high frequency access file are used to be sequentially loaded according to a hit page when the applet is started.
Optionally, the high-frequency access page determining module 41 is specifically configured to:
and acquiring a high-frequency access page identifier from a configuration file of the applet, and determining the high-frequency access page according to the high-frequency access page identifier.
Optionally, the associated data includes page data of the page and reference data corresponding to the resource referred by the page.
Optionally, the data determining module 42 is specifically configured to:
compiling page data of each page in the applet to determine reference data of resources referenced by each page;
and determining the shared access data according to the reference condition of each reference data by the high-frequency access page.
Optionally, the data determining module 42 is further specifically configured to:
determining reference data which is simultaneously referenced by at least two high-frequency access pages as shared access data; and/or
Determining the reference data which is simultaneously referenced by the high-frequency access page and the non-high-frequency access page in the sub-package as shared access data; the pages of the small program comprise a main package page and at least one sub-package page, and the high-frequency access page is the main package page.
Optionally, the associated data of the high-frequency access page includes page data of the high-frequency access page and individual reference data of the high-frequency access page, where the individual reference data of the high-frequency access page is reference data of the high-frequency access page other than the shared access data;
the associated data of the non-high-frequency access page comprises page data of the non-high-frequency access page and individual reference data of the non-high-frequency access page, wherein the individual reference data of the non-high-frequency access page is reference data of the non-high-frequency access page except the shared access data and the individual reference data of the high-frequency access page.
Optionally, the associated data of the non-high-frequency access page includes associated data of a non-high-frequency access page in the main packet and associated data of a non-high-frequency access page in the sub packet;
correspondingly, the file generating module 43 is specifically configured to:
compiling the associated data of the non-high-frequency access pages in the main package to generate a main package non-high-frequency access file;
and compiling the associated data of the non-high-frequency access pages in each sub-packet respectively to generate a sub-packet non-high-frequency access file.
Optionally, the file generating module 43 is further specifically configured to:
and compiling the associated data of each high-frequency access page respectively to generate a high-frequency access file.
The compiling device 40 for the applet starting file disclosed in the embodiment of the present application can execute the compiling method for the applet starting file disclosed in the embodiment of the present application, and has functional modules corresponding to the executing method and beneficial effects. The contents not described in detail in this embodiment may refer to the description in the embodiment of the compiling method of any applet starting file in this application.
Fig. 5 is a schematic structural diagram of a loading apparatus for an applet start file according to an embodiment of the present application, which may be applied to a case where the applet start file is automatically loaded. The device of the embodiment can be implemented by software and/or hardware, and can be integrated on any electronic equipment with computing capability. And compiling the files of the small programs by adopting the compiling device of the small program starting files provided by the implementation.
As shown in fig. 5, the apparatus 50 for loading an applet start file disclosed in this embodiment may include a hit page determining module 51, a shared entry file loading module 52, and a file loading module 53, where:
a hit page determining module 51, configured to obtain a page starting request for an applet, and determine a hit page according to the page starting request;
a shared entry file loading module 52, configured to load the shared entry file in the applet;
and the file loading module 53 is configured to identify the hit page as a high-frequency access page or a non-high-frequency access page, and load the high-frequency access file or the non-high-frequency access file corresponding to the page according to the identification result of the hit page.
Optionally, the shared entry file includes shared access data, where the shared access data is reference data that is simultaneously referenced by at least two high-frequency access pages; and/or, reference data simultaneously referenced by the high-frequency access page and the non-high-frequency access page in the sub-package; the pages of the small program comprise a main package page and at least one sub-package page, and the high-frequency access page is the main package page.
Optionally, the high-frequency access file includes page data of the high-frequency access page and individual reference data of the high-frequency access page data, where the individual reference data of the high-frequency access page is reference data of the high-frequency access page other than the shared access data;
the non-high-frequency access file comprises page data of the non-high-frequency access pages and individual reference data of the non-high-frequency access pages, wherein the individual reference data of the non-high-frequency access pages are reference data of the non-high-frequency access pages except the shared access data and the individual reference data of the high-frequency access pages.
Optionally, the non-high frequency access file includes a main packet non-high frequency access file and a sub packet non-high frequency access file;
the individual reference data in the main package non-high-frequency access file is reference data in the main package page reference data except the shared access data and the individual reference data of the high-frequency access page;
and the individual reference data in the sub-packet non-high-frequency access file is reference data in the sub-packet page reference data except the shared access data and the main packet non-high-frequency page individual reference data.
Optionally, the file loading module 53 is specifically configured to:
if the high-frequency access page with the page as the main package is hit, loading the high-frequency access file;
if the hit page is the non-high-frequency access page of the main package, loading the non-high-frequency access file of the main package;
and if the hit page is the sub-packaged non-high-frequency access page, loading the main package non-high-frequency access file and the sub-packaged non-high-frequency access file.
The applet starting file loading device 50 disclosed in the embodiment of the present application can execute the applet starting file loading method disclosed in the embodiment of the present application, and has functional modules corresponding to the execution method and beneficial effects. The content that is not described in detail in this embodiment may refer to the description in the embodiment of the method for loading any applet starting file in this application.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
Fig. 6 is a block diagram of an electronic device according to an embodiment of the present application, illustrating a method for compiling and loading an applet start file. 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 phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 6, the electronic apparatus includes: one or more processors 601, memory 602, and interfaces for connecting the various components, including a high-speed interface and a low-speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). In fig. 6, one processor 601 is taken as an example.
The memory 602 is a non-transitory computer readable storage medium as provided herein. The memory stores instructions executable by at least one processor, so that the at least one processor executes the compiling and loading method of the applet starting file provided by the application. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to execute the applet launch file compiling and loading method provided in the present application.
The memory 602 is a non-transitory computer readable storage medium, and can be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the compiling and loading method of the applet starting file in the embodiment of the present application (for example, the high frequency access page determining module 41, the data determining module 42, and the file generating module 43 shown in fig. 4, and/or the hit page determining module 51, the shared entry file loading module 52, and the file loading module 53 shown in fig. 5). The processor 601 executes various functional applications of the server and data processing by running non-transitory software programs, instructions and modules stored in the memory 602, that is, implementing the compiling and loading method of the applet starting file in the above method embodiment.
The memory 602 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the compilation of the applet start-up file, the use of the electronic device of the loading method, and the like. Further, the memory 602 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 602 optionally includes memory located remotely from the processor 601, and these remote memories may be connected over a network to an electronic device that is a method for compiling and loading applet startup files. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device of the compiling and loading method for the applet starting file may further include: an input device 603 and an output device 604. The processor 601, the memory 602, the input device 603 and the output device 604 may be connected by a bus or other means, and fig. 6 illustrates the connection by a bus as an example.
The input device 603 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device of the method of compiling and loading the applet launch file, such as a touch screen, keypad, mouse, track pad, touch pad, pointer, one or more mouse buttons, track ball, joystick or the like. The output devices 604 may include a display device, auxiliary lighting devices (e.g., LEDs), and tactile feedback devices (e.g., vibrating motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
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 a pointing device (e.g., a mouse or a 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 can 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, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end 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 back-end, 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), the internet, and blockchain networks.
The computer system may include clients and servers. A client and server are generally 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. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
According to the technical scheme of the embodiment of the application, the embodiment can reduce the volume of the entry file, so that the loading performance of the small program page is improved, and the starting and loading time of the small program is shortened.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (17)

1. A compiling method of an applet starting file comprises the following steps:
determining a high-frequency access page in an applet page;
determining shared access data, associated data of the high-frequency access pages and associated data of non-high-frequency access pages according to the high-frequency access pages;
compiling according to the shared access data to generate a shared entry file, compiling according to the associated data of the high-frequency access page to generate a high-frequency access file, and compiling according to the associated data of the non-high-frequency access page to generate a non-high-frequency access file;
wherein the shared entry file, the high frequency access file, and the non-high frequency access file are used to be sequentially loaded according to a hit page when the applet is started.
2. The method of claim 1, wherein determining high frequency access pages in an applet page comprises:
and acquiring a high-frequency access page identifier from a configuration file of the applet, and determining the high-frequency access page according to the high-frequency access page identifier.
3. The method of claim 1, wherein the association data comprises page data for a page and reference data corresponding to a resource referenced by the page.
4. The method of claim 1, wherein determining shared access data from the high frequency access page comprises:
compiling page data of each page in the applet to determine reference data of resources referenced by each page;
and determining the shared access data according to the reference condition of each reference data by the high-frequency access page.
5. The method of claim 4, wherein determining the shared access data according to the reference of each reference data by the high-frequency access page comprises:
determining reference data which is simultaneously referenced by at least two high-frequency access pages as shared access data; and/or
Determining the reference data which is simultaneously referenced by the high-frequency access page and the non-high-frequency access page in the sub-package as shared access data; the pages of the small program comprise a main package page and at least one sub-package page, and the high-frequency access page is the main package page.
6. The method of claim 3 or 4 or 5, wherein:
the associated data of the high-frequency access page comprises page data of the high-frequency access page and individual reference data of the high-frequency access page, wherein the individual reference data of the high-frequency access page is reference data of the high-frequency access page except the shared access data;
the associated data of the non-high-frequency access page comprises page data of the non-high-frequency access page and individual reference data of the non-high-frequency access page, wherein the individual reference data of the non-high-frequency access page is reference data of the non-high-frequency access page except the shared access data and the individual reference data of the high-frequency access page.
7. The method of claim 6, wherein:
the associated data of the non-high-frequency access pages comprise associated data of the non-high-frequency access pages in the main package and associated data of the non-high-frequency access pages in the sub-package;
correspondingly, compiling and generating the non-high-frequency access file according to the associated data of the non-high-frequency access page comprises the following steps:
compiling the associated data of the non-high-frequency access pages in the main package to generate a main package non-high-frequency access file;
and compiling the associated data of the non-high-frequency access pages in each sub-packet respectively to generate a sub-packet non-high-frequency access file.
8. The method of claim 6, wherein compiling from the associated data of the high frequency access pages to generate a high frequency access file comprises:
and compiling the associated data of each high-frequency access page respectively to generate a high-frequency access file.
9. A method for loading an applet starting file, wherein the applet starting file is compiled by the method for compiling an applet starting file according to claim 1, the method comprising:
acquiring a page starting request in an applet, and determining a hit page according to the page starting request;
loading the shared entry file in an applet;
and identifying the hit page as a high-frequency access page or a non-high-frequency access page, and loading the high-frequency access file or the non-high-frequency access file corresponding to the page according to the identification result of the hit page.
10. The method of claim 9, wherein:
the shared entry file comprises shared access data, and the shared access data are reference data which are simultaneously referenced by at least two high-frequency access pages; and/or, reference data simultaneously referenced by the high-frequency access page and the non-high-frequency access page in the sub-package; the pages of the small program comprise a main package page and at least one sub-package page, and the high-frequency access page is the main package page.
11. The method of claim 9, wherein:
the high-frequency access file comprises page data of the high-frequency access page and individual reference data of the high-frequency access page data, wherein the individual reference data of the high-frequency access page is reference data of the high-frequency access page except the shared access data;
the non-high-frequency access file comprises page data of the non-high-frequency access pages and individual reference data of the non-high-frequency access pages, wherein the individual reference data of the non-high-frequency access pages are reference data of the non-high-frequency access pages except the shared access data and the individual reference data of the high-frequency access pages.
12. The method of claim 10, wherein:
the non-high frequency access files comprise a main package non-high frequency access file and a sub package non-high frequency access file;
the individual reference data in the main package non-high-frequency access file is reference data in the main package page reference data except the shared access data and the individual reference data of the high-frequency access page;
and the individual reference data in the sub-packet non-high-frequency access file is reference data in the sub-packet page reference data except the shared access data and the main packet non-high-frequency page individual reference data.
13. The method of claim 11, wherein loading the high frequency access file or non-high frequency access file corresponding to a page according to the identification result of a hit page comprises:
if the high-frequency access page with the page as the main package is hit, loading the high-frequency access file;
if the hit page is the non-high-frequency access page of the main package, loading the non-high-frequency access file of the main package;
and if the hit page is the sub-packaged non-high-frequency access page, loading the main package non-high-frequency access file and the sub-packaged non-high-frequency access file.
14. An applet starting file compiling apparatus comprising:
the high-frequency access page determining module is used for determining a high-frequency access page in the small program page;
the data determining module is used for determining shared access data, associated data of the high-frequency access page and associated data of a non-high-frequency access page according to the high-frequency access page;
the file generation module is used for compiling and generating a shared entry file according to the shared access data, compiling and generating a high-frequency access file according to the associated data of the high-frequency access page, and compiling and generating a non-high-frequency access file according to the associated data of the non-high-frequency access page;
wherein the shared entry file, the high frequency access file, and the non-high frequency access file are used to be sequentially loaded according to a hit page when the applet is started.
15. An apparatus for loading an applet start-up file compiled by the applet start-up file compiling apparatus according to claim 13, the apparatus comprising:
the hit page determining module is used for acquiring a page starting request in the applet and determining a hit page according to the page starting request;
the shared entry file loading module is used for loading the shared entry file in the applet;
and the file loading module is used for identifying the hit page as a high-frequency access page or a non-high-frequency access page and loading the high-frequency access file or the non-high-frequency access file corresponding to the page according to the identification result of the hit page.
16. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any of claims 1-8 and/or claims 9-13.
17. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any of claims 1-8 and/or claims 9-13.
CN202011509061.2A 2020-12-18 2020-12-18 Method, device, equipment and medium for compiling and loading applet startup file Active CN112579096B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011509061.2A CN112579096B (en) 2020-12-18 2020-12-18 Method, device, equipment and medium for compiling and loading applet startup file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011509061.2A CN112579096B (en) 2020-12-18 2020-12-18 Method, device, equipment and medium for compiling and loading applet startup file

Publications (2)

Publication Number Publication Date
CN112579096A true CN112579096A (en) 2021-03-30
CN112579096B CN112579096B (en) 2024-03-19

Family

ID=75136132

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011509061.2A Active CN112579096B (en) 2020-12-18 2020-12-18 Method, device, equipment and medium for compiling and loading applet startup file

Country Status (1)

Country Link
CN (1) CN112579096B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113553074A (en) * 2021-07-23 2021-10-26 北京百度网讯科技有限公司 Applet distribution control method, device, electronic equipment and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61169947A (en) * 1985-01-23 1986-07-31 Fujitsu Ltd Page control system
JPH06214803A (en) * 1993-01-18 1994-08-05 Nec Corp Virtual space block arranging system
US20110197125A1 (en) * 2008-10-21 2011-08-11 Sun Zengcai Web Page Loading Method and Apparatus
WO2012079531A1 (en) * 2010-12-16 2012-06-21 华为技术有限公司 Method and device for improving performance of mobile widget
US20150356003A1 (en) * 2014-06-09 2015-12-10 Electronics And Telecommunications Research Institute Method for sharing reference data among application programs executed by a plurality of virtual machines and reference data management apparatus and system thereof
US20180329712A1 (en) * 2017-05-09 2018-11-15 Futurewei Technologies, Inc. File access predication using counter based eviction policies at the file and page level
CN110187931A (en) * 2019-05-17 2019-08-30 北京百度网讯科技有限公司 The operation method and device of small routine
EP3543842A2 (en) * 2018-03-20 2019-09-25 Beijing Xiaomi Mobile Software Co., Ltd. Application configuration file generation method and apparatus, application page display method and apparatus and storage medium
CN111045683A (en) * 2019-12-13 2020-04-21 深圳前海微众银行股份有限公司 Applet code compiling method, device, equipment and medium
CN111475259A (en) * 2020-04-02 2020-07-31 北京百度网讯科技有限公司 Applet loading method and device and electronic equipment
CN111767090A (en) * 2020-06-28 2020-10-13 百度在线网络技术(北京)有限公司 Method and device for starting small program, electronic equipment and storage medium
CN111767069A (en) * 2020-06-30 2020-10-13 北京百度网讯科技有限公司 Applet processing method, server, device and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61169947A (en) * 1985-01-23 1986-07-31 Fujitsu Ltd Page control system
JPH06214803A (en) * 1993-01-18 1994-08-05 Nec Corp Virtual space block arranging system
US20110197125A1 (en) * 2008-10-21 2011-08-11 Sun Zengcai Web Page Loading Method and Apparatus
WO2012079531A1 (en) * 2010-12-16 2012-06-21 华为技术有限公司 Method and device for improving performance of mobile widget
US20150356003A1 (en) * 2014-06-09 2015-12-10 Electronics And Telecommunications Research Institute Method for sharing reference data among application programs executed by a plurality of virtual machines and reference data management apparatus and system thereof
US20180329712A1 (en) * 2017-05-09 2018-11-15 Futurewei Technologies, Inc. File access predication using counter based eviction policies at the file and page level
EP3543842A2 (en) * 2018-03-20 2019-09-25 Beijing Xiaomi Mobile Software Co., Ltd. Application configuration file generation method and apparatus, application page display method and apparatus and storage medium
CN110187931A (en) * 2019-05-17 2019-08-30 北京百度网讯科技有限公司 The operation method and device of small routine
CN111045683A (en) * 2019-12-13 2020-04-21 深圳前海微众银行股份有限公司 Applet code compiling method, device, equipment and medium
CN111475259A (en) * 2020-04-02 2020-07-31 北京百度网讯科技有限公司 Applet loading method and device and electronic equipment
CN111767090A (en) * 2020-06-28 2020-10-13 百度在线网络技术(北京)有限公司 Method and device for starting small program, electronic equipment and storage medium
CN111767069A (en) * 2020-06-30 2020-10-13 北京百度网讯科技有限公司 Applet processing method, server, device and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A.HAC ETAL.: "A distributed load building algorithm for parallel compilation of files in a software application", 《PROCEEDINGS FOURTH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING》 *
姚静: "微信小程序页面路由原理", 《电脑知识与技术》, vol. 15, no. 28 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113553074A (en) * 2021-07-23 2021-10-26 北京百度网讯科技有限公司 Applet distribution control method, device, electronic equipment and storage medium
CN113553074B (en) * 2021-07-23 2023-07-25 北京百度网讯科技有限公司 Applet distribution control method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112579096B (en) 2024-03-19

Similar Documents

Publication Publication Date Title
US11461111B2 (en) Method for running applets, and electronic device
US11403117B2 (en) Methods for processing mini program, and related devices
KR20220017348A (en) Method, device, electronic equipment and readable storage medium for sharing gpu
CN112861057A (en) Page rendering method, device and equipment based on small program and storage medium
CN111767090A (en) Method and device for starting small program, electronic equipment and storage medium
US11360973B2 (en) Generating multilingual queries
US20180365226A1 (en) Determining context using weighted parsing scoring
CN112000394A (en) Method, apparatus, device and storage medium for accessing an applet
CN111767089A (en) Method, device and equipment for loading file and storage medium
CN112328301A (en) Method and device for maintaining consistency of operating environments, storage medium and electronic equipment
CN112015468A (en) Interface document processing method and device, electronic equipment and storage medium
CN112506854A (en) Method, device, equipment and medium for storing page template file and generating page
CN111782181A (en) Code generation method and device, electronic equipment and storage medium
CN110046025B (en) Method, medium, computer system and system for restarting virtual machine
CN114546583A (en) Containerized computing environment
CN112579096A (en) Method, device, equipment and medium for compiling and loading small program starting file
CN111767059B (en) Deployment method and device of deep learning model, electronic equipment and storage medium
JP2021131897A (en) Scheduling method, device, equipment, storage equipment, and program
CN111966877A (en) Front-end service method, device, equipment and storage medium
CN110908675A (en) Operating environment acquisition method and device and electronic equipment
CN114661274A (en) Method and device for generating intelligent contract
CN114168151A (en) Container-based program compiling method and device, electronic equipment and storage medium
CN112379945A (en) Method, device, equipment and storage medium for running application
CN113220367A (en) Applet running method and device, electronic equipment and storage medium
CN112379885A (en) Applet compiling method, device and equipment 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