Nothing Special   »   [go: up one dir, main page]

CN112579096B - Method, device, equipment and medium for compiling and loading applet startup file - Google Patents

Method, device, equipment and medium for compiling and loading applet startup file Download PDF

Info

Publication number
CN112579096B
CN112579096B CN202011509061.2A CN202011509061A CN112579096B CN 112579096 B CN112579096 B CN 112579096B CN 202011509061 A CN202011509061 A CN 202011509061A CN 112579096 B CN112579096 B CN 112579096B
Authority
CN
China
Prior art keywords
page
frequency access
file
data
high frequency
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
CN202011509061.2A
Other languages
Chinese (zh)
Other versions
CN112579096A (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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a compiling and loading method, device, equipment and medium of an applet starting file, and relates to the technical fields of program front-end starting and cloud computing. The specific implementation scheme is as follows: determining a high-frequency access page in the applet page; 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; 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 the hit page at the time of the applet start. The method and the device can reduce the volume of the entry file, thereby improving the loading performance of the applet page and reducing the starting loading time of the applet.

Description

Method, device, equipment and medium for compiling and loading applet startup file
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a medium for compiling and loading an applet startup file.
Background
The mode of running the applet by providing the running environment by the host program is increasingly used in internet services. Typically, an application program (APP) installed in a terminal device may serve as a host program. The applet can directly open the page of the applet through the host program without downloading and installing the applet by a user, thereby realizing the service function of the applet.
Launching the applet in the host program is accomplished by loading and opening the applet's pages, specifically by loading the portal file and rendering the rendered pages based on the data in the portal file.
In the prior art, the volume of an entry file is generally overlarge when the applet is started, so that the applet is long in starting and loading time, and the user experience is poor.
Disclosure of Invention
The disclosure provides a compiling and loading method, device, equipment and medium of an applet starting file to accelerate the applet starting speed.
According to an aspect of the present disclosure, there is provided a compiling method of an applet startup file, including:
Determining a high-frequency access page in the applet page;
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;
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 the hit page at the time of the applet start.
According to another aspect of the present disclosure, there is provided a method for loading an applet start file, where the applet file is compiled by using the method for compiling an applet start file provided by the present disclosure, the method including:
acquiring a page starting request in the applet, and determining a hit page according to the page starting request;
loading the shared entry file in the 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 startup file, including:
the high-frequency access page determining module is used for determining a high-frequency access page in the applet 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 the hit page at the time of the applet start.
According to another aspect of the present disclosure, there is provided a loading device of an applet start file, the file of the applet is compiled by using a compiling device of the applet start file provided by the present disclosure, the device includes:
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 memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of compiling and loading the applet initiation file according to any one of the embodiments of the present 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 the compiling, loading method of an applet initiation 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 applet page is improved, and the starting loading time of the applet is reduced.
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 better understanding of the present solution and do not constitute a limitation of the present application. Wherein:
FIG. 1A is a schematic diagram of an existing applet initiation file according to an embodiment of the present application;
FIG. 1B is a flowchart of a method of compiling an applet initiation file according to an embodiment of the present application;
FIG. 2A is a flow chart of a method of compiling an applet initiation file according to an embodiment of the present application;
FIG. 2B is a schematic diagram of an optimized applet start-up file according to an embodiment of the present application;
FIG. 3A is a schematic diagram of an existing applet initiation file load according to an embodiment of the present application;
FIG. 3B is a flow chart of a method of loading an applet initiation file according to an embodiment of the present application;
FIG. 3C is a schematic diagram of an optimized applet initiation file load according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a compiling apparatus for an applet startup file according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a loading device for an applet initiation file according to an embodiment of the present application;
fig. 6 is a block diagram of an electronic device for implementing a compiling and loading method for an applet startup file according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present application 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 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 initiator according to an embodiment of the present application, and as shown in fig. 1A, the applet initiator 10 includes a main package 11, a first sub package 12 and a second sub package 13, 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, 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 package 12 and the sub package 13. The portal file 15 includes second page data 21 corresponding to all the sub-package pages in the sub-package 12. The portal file 16 includes third page data 22 corresponding to all subcontracting pages in the subcontracting 13. The present embodiment uses only two sub-packets: the sub-packets 12 and 13 are illustrated and are not limiting on the number of sub-packets in the start-up file.
As can be seen from fig. 1A, the existing applet start-up file has the following drawbacks:
1) The portal file corresponding to the main package stores the reference data corresponding to the main package page and the reference data corresponding to the sub package page, so that the portal file corresponding to the main package has larger volume, and when the main package page is requested, the loading performance of the small program page can be seriously affected, and the user experience is poor.
2) The reference data corresponding to the sub-package page stored in the entry file corresponding to the main package belongs to useless data for the main package, and loading and executing the part of data inevitably affects the loading performance of the applet page.
3) For the pages with high access frequency in the main package, such as initial pages, when the pages with high access frequency are hit, as the entry files corresponding to the main package store the associated data of various pages, unnecessary data, such as associated data of pages with non-high frequency access, must be loaded, thus affecting the page loading performance and failing to perform further performance optimization for the pages with high access frequency.
Fig. 1B is a flowchart of a method for compiling an applet startup file according to an embodiment of the present application, which may be applicable to a case where compiling is automatically performed on the applet startup file. The method of the embodiment can be executed by a compiling device of an applet startup file, and the device can be implemented by software and/or hardware and can be integrated on any electronic device with computing capability.
As shown in fig. 1B, the compiling method of the applet startup file disclosed in the present 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 pages, such as a default initial page of the applet or a user login page of the applet. The access frequency can be preset by the applet developer according to experience or access statistics.
In one embodiment, according to the number of times each page in the applet is accessed, the number of times is compared with a threshold number of times, and the page with the number of times greater than or equal to the threshold number of times is used as the high-frequency access page.
In another embodiment, according to the accessed time length of each page of the applet, comparing the accessed time length with a time length threshold value, and taking the page with the accessed time length being greater than or equal to the time length threshold value as a high-frequency access page.
By determining the high-frequency access page in the applet page, a foundation is laid for determining shared access data according to the high-frequency access page.
S102, 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.
Wherein the shared access data refers to associated data shared by at least two pages, the non-high frequency access page refers to pages except the high frequency access page in the applet page, the associated data comprises page data of the page and reference data corresponding to resources referenced by the page, the page data refers to data related to page display, such as color, font, word size or animation type, and the reference data refers to general logic data acquired at the reference resources (such as a database) and used for generating the page, such as a date calculation mode, or request logic of the data.
In one embodiment, the pages of the applet are parsed to determine page data for each page, and preset operations are performed on the page data for each page to determine reference data for each page, wherein the preset operations include, but are not limited to, compilation, encoding, source code analysis, and 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. And, according to the high-frequency access page determined, the page data of the high-frequency access page and the reference data except the shared access data are used as the associated data of the high-frequency access page; according to the determined high-frequency access page, a non-high-frequency access page other than the high-frequency access page is determined from the applet page, and page data of the non-high-frequency access page and reference data other than the shared access data are used as associated data of the non-high-frequency access page.
The data included in the applet page is classified by determining the shared access data, the associated data of the high-frequency access page and the associated data of the non-high-frequency access page according to the high-frequency access page, so that a foundation is laid for generating different compiled files according to different types of data.
S103, 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 the hit page at the time of the applet start.
In one embodiment, compiling is performed on the shared access data, the associated data of the high-frequency access page and the associated data of the non-high-frequency access page through a preset compiler respectively, and compiling results respectively corresponding to the three data are obtained through five stages including lexical analysis, grammar analysis, semantic checking, intermediate code generation, code optimization and object code generation. The compiling result corresponding to the shared access data is used as a shared entry file, the compiling result corresponding to the associated data of the high-frequency access page is used as a high-frequency access file, and the compiling result corresponding to the associated data of the non-high-frequency access page is used as a non-high-frequency access file. The shared entry file includes global logic data including global attributes and variables of the applet, in addition to shared access data.
When the host platform end obtains a starting request of a user for any page of the applet, the starting request is issued to the applet, so that the applet loads the shared entry file, the high-frequency access file and the non-high-frequency access file according to the hit page sequence.
The compiling method of the applet startup file provided in the embodiment compiles page data and reference data of pages 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 applet page is determined, and then 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, finally the shared access file is generated according to the compiling of the shared access data, the high-frequency access file is generated according to the compiling of the associated data of the high-frequency access page, and the non-high-frequency access file is generated according to the compiling of the associated data of the non-high-frequency access page. In addition, the embodiment compiles the startup files for the high-frequency access page and the non-high-frequency access page respectively, 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, and when the high-frequency access page is hit, other unnecessary data do not need to be loaded, thereby optimizing the loading performance of the high-frequency access page.
Fig. 2A is a flowchart of a method for compiling an applet startup file according to an embodiment of the present application, which is further optimized and expanded based on the above technical solution, and may be combined with the above various alternative embodiments.
As shown in fig. 2A, the method may include:
s201, 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.
In one embodiment, a related technician determines a high-frequency access page and a non-high-frequency access page in advance according to the accessed times and/or accessed time of each page in the applet, further adds different page identifications for the high-frequency access page and the non-high-frequency access page, and stores the page identifications in a configuration file of the applet. And carrying out condition search in the applet configuration file to obtain the high-frequency access page identification, and further determining the corresponding high-frequency access page according to the high-frequency access page identification.
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, the reference data which is referenced by more than a preset number of high-frequency access pages is used as the shared access data, wherein the preset number can be adjusted according to actual requirements.
Optionally, in S202, "determining that the shared access data includes according to the reference condition of each reference data by the high-frequency access page", 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 which is simultaneously referenced by the high frequency access page and the non-high frequency access page in the sub packet as shared access data.
The pages of the applet comprise a main package page and at least one sub package page, the high-frequency access page is the main package page, the non-high-frequency access page can be the main package page or the sub package page, and the sub package pages are all non-high-frequency access pages. Default start pages and/or control bar pages, and some common resources and/or scripts that are required by all the sub-packages are placed in the main package. The sub-packaging is performed according to the requirements of the applet developer to reduce the volume of the applet.
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, page 3 is a non-high frequency access page, and 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, page 6 is a non-high frequency access page in the sub package, and 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 independent 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 other than the shared access data. In other words, the individual reference data of any one high-frequency access page can be referred to only by that high-frequency access page, and cannot be referred to by other high-frequency access pages.
S204, according to the page data of the non-high frequency access page and the independent reference data of the non-high frequency access page, the associated data of the non-high frequency access page is determined.
Optionally, if the non-high frequency access page is a non-high frequency access page in the packet, the individual reference data of the non-high frequency access page is: the non-high frequency access page includes reference 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 of the individual reference data of the non-high frequency access page in the subpacket with the individual reference data of the shared access data and the high frequency access page.
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 refers to data other than the shared access data. In other words, the individual reference data of the non-high frequency access page in the main package may be the same as the individual reference data of the high frequency access page, or may be the same as the individual reference data of the non-high frequency access page in the sub package.
S205, compiling and generating a shared entry file according to the shared access data.
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.
The association data of the non-high frequency access page comprises association data of the non-high frequency access page in a main packet and association data of the non-high frequency access page in a sub packet.
In one embodiment, for the non-high frequency access pages in the main package, the associated data of all the non-high frequency access pages are acquired, the associated data are compiled through a preset compiler, and the compiling result is used as the non-high frequency access files of the main package, namely, one and only one non-high frequency access file of the main package exists in the main package. And compiling the associated data of each non-high frequency access page by a preset compiling program for the non-high frequency access pages in the sub-package, and taking the compiling result as a sub-package non-high frequency access file corresponding to the non-high frequency access page to which the compiling result belongs, namely, each non-high frequency access page in the sub-package has only one sub-package non-high frequency access file.
S207, compiling the associated data of each high-frequency access page to generate a high-frequency access file.
In one embodiment, the associated data of the high-frequency access pages are compiled by a preset compiler respectively, and the compiling result is used as the high-frequency access file corresponding to the high-frequency access page to which the compiling result belongs, namely, each high-frequency access page has 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 quickly determining the high-frequency access page is realized; 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 by a high-frequency access page, thereby realizing the effect of determining the shared access data; determining reference data to be referenced by at least two high-frequency access pages simultaneously as shared access data; and/or, the reference data which is referenced by the high-frequency access page and the non-high-frequency access page in the sub-packet at the same time is determined as shared access data, so that the effect of determining the shared access data according to the page attribute of the referenced page of the reference data is realized; the method comprises the steps of determining associated data of a high-frequency access page according to page data of the high-frequency access page and independent reference data of the high-frequency access page, and determining associated data of a non-high-frequency access page according to page data of a non-high-frequency access page and independent reference data of the non-high-frequency access page, so that the effect of classifying the page data and the reference data is achieved, and a data foundation is laid for generating a plurality of starting files subsequently; the related data of the non-high frequency access pages in each sub-packet are respectively compiled to generate a sub-packet non-high frequency access file, and the related data of each high frequency access page is respectively compiled to generate a high frequency access file, so that the effect of reducing the volume of the main packet sharing entry file is realized, and the loading performance of the small program pages in the main packet is optimized.
Fig. 2B is a schematic structural diagram of an optimized applet start file according to an embodiment of the present application, and as shown in fig. 2B, the applet start 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 packetization 202 comprises packetizing a first non-high frequency access file 208 and the packetization 203 comprises packetizing a second non-high frequency access file 209. The shared entry file 204 includes shared access data 210 and global logic data 211; the high-frequency access file 205 includes first page data 212 of the high-frequency access page 1, and first individual reference data 213 of the high-frequency access page 1; the high frequency access file 206 includes second page data 214 of the high frequency access page 2, and second individual reference data 215 of the high frequency access page 2; the main package non-high frequency access file 207 includes third page data 216 of main package non-high frequency access pages 1 to N, and third individual reference data 217 of main package non-high frequency access pages 1 to N. The packetized non-high frequency access file 208 includes fourth page data 218 of the packetized non-high frequency access page 1, and fourth individual reference data 219 of the 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 present implementation provides only an alternative structure of the applet launching file, and does not limit the number of packets in the applet launching file and the number of high frequency access files.
FIG. 3A is a schematic diagram of loading a file initiated by an existing applet according to an embodiment of the present application, as shown in FIG. 3A, first determining whether a hit page belongs to a main package or a sub package, if so, executing step 30, and loading an entry file of the main package; if the packet belongs to the sub-packet, step 31 is executed, the entry file of the main packet is loaded, and step 32 is executed, the entry file of the sub-packet is loaded.
The existing applet starts file loading, and the loading performance of the starting file is lower and the time consumption is longer because the volume of the entry file in the main package is larger.
Fig. 3B is a flowchart of a method for loading an applet startup file according to an embodiment of the present application, which may be applicable to a case where the applet startup file is automatically loaded. The method of the embodiment can be executed by a loading device of an applet initiation file, and the device can be implemented by software and/or hardware and can be integrated on any electronic device with computing capability.
As shown in fig. 3B, the loading method of the applet startup file disclosed in the present embodiment may include:
s301, acquiring a page starting request in the applet, and determining a hit page according to the page starting request.
In one embodiment, after a user generates a page start request at the host platform end, the host platform end intercepts the route and issues the page start request to the running applet. The applet 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.
Wherein the shared portal file includes shared access data, which is reference data referenced by at least two high frequency access pages simultaneously; and/or, reference data referenced by both the high frequency access page and the non-high frequency access page in the sub-packet; the pages of the applet 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 in which the shared entry file is loaded includes, but is not limited to, loading via a file path or loading via a class, etc.
By loading the shared entry file in the applet, the number of shared accesses in the shared entry file can be loaded at applet start-up to generate applet pages related to the number of shared accesses.
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 independent reference data of the high-frequency access page data, wherein the independent 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 includes 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 other than the shared access data and the individual reference data of the high frequency access page.
Optionally, the non-high frequency access file includes a main package non-high frequency access file and a sub-package non-high frequency access file; the independent reference data in the main package non-high frequency access file is the reference data except the shared access data and the independent reference data of the high frequency access page in the main package page reference data; the single reference data in the sub-package non-high frequency access file is reference data except the shared access data and the single reference data of the main package non-high frequency page in the sub-package page 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 identification of the hit page, if the hit page is a high frequency access page, the high frequency access file is loaded, and if the hit page is a non-high frequency access page, the non-high frequency access file is loaded.
Optionally, in S303, "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", including 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 one embodiment, if the high-frequency access page of which the hit page is the main package is determined according to the page identifier of the hit page, the loader applet starts the 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 the non-high frequency access page of the main package according to the page identification of the hit page, the loader applet starts the 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 packetized non-high frequency access page according to the page identifier of the hit page, the applet is loaded to start the main package non-high frequency access file in the main package of the file first, and then the sub-package non-high frequency access file in the sub-package corresponding to the hit page is loaded.
Loading a high-frequency access file by using the hit page as 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 a non-high frequency access file of the main package; if the hit page is a 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, so that the corresponding access files are respectively loaded according to different types of hit pages, the problem of loading useless resources is avoided, and the loading efficiency is improved.
The loading method of the applet startup file provided in this embodiment is to load the startup file in the applet logic layer, and if the applet includes a view layer in addition to the logic layer, then after loading the startup file in the logic layer, the page in the view layer is 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, then the shared entry file in the applet is loaded, the hit page is finally identified as the high-frequency access page or the non-high-frequency access page, 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, the effect of respectively loading the corresponding access files according to different types of hit pages is realized, the problem that in the prior art, the loading performance is low due to the fact that all data are compiled in one entry file is avoided, 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 according to an embodiment of the present application, as shown in fig. 3C, first determining whether a hit page belongs to a main package or a sub package, if so, executing step 310, loading a shared entry file in the applet, executing step 311, loading a main package non-high frequency access file in the applet startup file main package, and finally executing step 312, loading a sub package non-high frequency access file in a sub package corresponding to the hit page. If the file belongs to the main package, continuing to judge whether the hit page is a high-frequency access page, if so, executing step 313, loading a shared entry file in the applet, and then executing step 314, and loading a high-frequency access file corresponding to the hit page in the applet startup file main package; if not, step 315 is performed to load the shared entry file in the applet, and step 316 is performed to load the main package non-high frequency access file in the applet startup file main package.
Fig. 4 is a schematic structural diagram of a compiling apparatus for an applet startup file according to an embodiment of the present application, which can be applied to a case where the applet startup file is compiled automatically. 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 for an applet startup file disclosed in the present 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 determination module 41 for determining a high-frequency access page among the applet pages;
a data determining module 42 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;
a file generating module 43, configured to compile and generate a shared entry file according to the shared access data, compile and generate a high-frequency access file according to the associated data of the high-frequency access page, and compile and 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 the hit page at the time of the applet start.
Optionally, the high-frequency access page determining module 41 is specifically configured to:
and acquiring a high-frequency access page identifier from the 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 resources referenced 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 specifically further 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 referenced by the high-frequency access page and the non-high-frequency access page in the sub-packet at the same time as shared access data; the pages of the applet 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 except the shared access data;
The association data of the non-high frequency access page includes 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 other than 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 the non-high frequency access page in the main packet and associated data of the 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 page 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 page in each sub-packet respectively to generate a sub-packet non-high frequency access file.
Optionally, the file generating module 43 is specifically further configured to:
and compiling the associated data of each high-frequency access page to generate a high-frequency access file.
The compiling device 40 for the applet starting file disclosed in the embodiment of the present application may execute the compiling method for the applet starting file disclosed in the embodiment of the present application, and has the corresponding functional modules and beneficial effects of the executing method. Details not described in detail in this embodiment may refer to descriptions in the compiling method embodiment of any applet startup file in this application.
Fig. 5 is a schematic structural diagram of a loading device for an applet startup file according to an embodiment of the present application, which may be suitable for a case where the applet startup 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. The file of the applet is compiled by adopting the compiling device of the applet starting file provided by the implementation.
As shown in fig. 5, the loading device 50 for the applet launching file disclosed in the present embodiment may include a hit page determining module 51, a shared entry file loading module 52 and a file loading module 53, wherein:
a hit page determining module 51, configured to obtain a page start request for the applet, and determine a hit page according to the page start request;
a shared entry file loading module 52 for loading the shared entry files in the applet;
and a file loading module 53, 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 referenced by both the high frequency access page and the non-high frequency access page in the sub-packet; the pages of the applet 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, 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 includes 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 other than the shared access data and the individual reference data of the high frequency access page.
Optionally, the non-high frequency access file includes a main package non-high frequency access file and a sub-package non-high frequency access file;
the independent reference data in the main package non-high frequency access file is the reference data except the shared access data and the independent reference data of the high frequency access page in the main package page reference data;
the single reference data in the sub-package non-high frequency access file is reference data except the shared access data and the single reference data of the main package non-high frequency page in the sub-package page reference data.
Optionally, the file loading module 53 is specifically configured to:
if the hit page is the high-frequency access page of the main package, 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 loading device 50 for the applet starting file disclosed in the embodiment of the present application can execute the loading method for the applet starting file disclosed in the embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method. Details not described in detail in this embodiment may refer to descriptions in the loading method embodiment of any applet launching file in this application.
According to embodiments 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 a compiling and loading method of an applet startup file according to an embodiment of the present application. 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 application described and/or claimed herein.
As shown in fig. 6, the electronic device includes: one or more processors 601, memory 602, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. 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 executing within the electronic device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In other embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple electronic devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 601 is illustrated in fig. 6.
Memory 602 is a non-transitory computer-readable storage medium provided herein. The memory stores instructions executable by the at least one processor to enable the at least one processor to execute the compiling and loading method of the applet initiation files 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 compiling and loading method of the applet startup file provided by the present application.
The memory 602 is used as a non-transitory computer readable storage medium, and may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the method of compiling and loading the applet startup file in the embodiments of the present application (e.g., the high frequency access page determination module 41, the data determination module 42, and the file generation module 43 shown in fig. 4, and/or the hit page determination 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, implements the method of compiling and loading applet initiation files 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, at least one application program required for a function; the storage data area may store data created according to compilation of an applet startup file, use of an electronic device of a loading method, and the like. In addition, 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, memory 602 may optionally include memory located remotely from processor 601, which may be connected to the electronic device of the compilation, loading method of the applet initiation file via a network. 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 of the applet initiation file may further include: an input device 603 and an output device 604. The processor 601, memory 602, input device 603 and output device 604 may be connected by a bus or otherwise, for example in fig. 6.
The input device 603 may receive input numeric or character information and generate key signal inputs related to user settings of the electronic device for the compilation of the applet initiation files, the loading method, and function control, such as input devices for a touch screen, keypad, mouse, track pad, touch pad, pointer stick, one or more mouse buttons, track ball, joystick, etc. The output means 604 may include a display device, auxiliary lighting means (e.g., LEDs), tactile feedback means (e.g., vibration motors), and the like. 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 may be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASIC (application specific integrated circuit), 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.
These computing programs (also referred to as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented in a high-level procedural and/or object-oriented programming language, and/or in assembly/machine language. 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 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), the internet, and blockchain networks.
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. 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 hosts 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 applet page is improved, and the starting loading time of the applet is reduced.
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 described in the present application may be performed in parallel, sequentially, or in a different order, provided that the desired results of the technical solutions disclosed in the present application can be achieved, and are not limited herein.
The above embodiments do not limit the scope of the application. 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 application are intended to be included within the scope of the present application.

Claims (15)

1. A method of compiling an applet initiation file, comprising:
determining a high-frequency access page in the applet page;
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;
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 the hit page at the time of the applet start;
wherein the shared access data is reference data which is simultaneously referenced by at least two high-frequency access pages; and/or
Reference data that is referenced by both the high frequency access page and the non-high frequency access page in the sub-packet; the pages of the applet comprise a main package page and at least one sub package page, and the high-frequency access page is the main package page;
the associated data of the high-frequency access page comprises page data of the high-frequency access page and independent reference data of the high-frequency access page, wherein the independent reference data of the high-frequency access page is reference data of the high-frequency access page except the shared access data;
the association data of the non-high frequency access page includes 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 other than the shared access data and the individual reference data of the high frequency access page.
2. The method of claim 1, wherein determining a high frequency access page of the applet pages comprises:
and acquiring a high-frequency access page identifier from the 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 includes page data for a page and reference data corresponding to resources 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 3 or 4, wherein:
the associated data of the non-high frequency access page comprises associated data of the non-high frequency access page in the main package and associated data of the non-high frequency access page 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 page 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 page in each sub-packet respectively to generate a sub-packet non-high frequency access file.
6. The method of claim 3 or 4, wherein compiling the generation of the high frequency access file from the associated data of the high frequency access page comprises:
and compiling the associated data of each high-frequency access page to generate a high-frequency access file.
7. A method for loading an applet startup file, the applet startup file being compiled using the applet startup file compilation method of claim 1, the method comprising:
acquiring a page starting request in the applet, and determining a hit page according to the page starting request;
loading the shared entry file in the 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.
8. The method of claim 7, wherein:
the shared entry file includes shared access data, which is reference data referenced by at least two high frequency access pages simultaneously; and/or, reference data referenced by both the high frequency access page and the non-high frequency access page in the sub-packet; the pages of the applet comprise a main package page and at least one sub package page, and the high-frequency access page is the main package page.
9. The method of claim 7, wherein:
the high-frequency access file comprises page data of the high-frequency access page and independent reference data of the high-frequency access page data, wherein the independent 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 includes 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 other than the shared access data and the individual reference data of the high frequency access page.
10. The method according to claim 8, 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 independent reference data in the main package non-high frequency access file is the reference data except the shared access data and the independent reference data of the high frequency access page in the main package page reference data;
the single reference data in the sub-package non-high frequency access file is reference data except the shared access data and the single reference data of the main package non-high frequency page in the sub-package page reference data.
11. The method of claim 9, wherein loading the high frequency access file or the non-high frequency access file corresponding to the page according to the recognition result of the hit page comprises:
if the hit page is the high-frequency access page of the main package, 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.
12. A compilation apparatus for an applet initiation file, comprising:
the high-frequency access page determining module is used for determining a high-frequency access page in the applet 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 the hit page at the time of the applet start;
wherein the shared access data is reference data which is simultaneously referenced by at least two high-frequency access pages; and/or
Reference data that is referenced by both the high frequency access page and the non-high frequency access page in the sub-packet; the pages of the applet comprise a main package page and at least one sub package page, and the high-frequency access page is the main package page;
the associated data of the high-frequency access page comprises page data of the high-frequency access page and independent reference data of the high-frequency access page, wherein the independent reference data of the high-frequency access page is reference data of the high-frequency access page except the shared access data;
the association data of the non-high frequency access page includes 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 other than the shared access data and the individual reference data of the high frequency access page.
13. A loading device of an applet startup file, the applet file being compiled using the applet startup file compiling device of claim 12, the device 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.
14. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
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-6 and/or claims 7-11.
15. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-6 and/or claims 7-11.
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 CN112579096A (en) 2021-03-30
CN112579096B true 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)

Families Citing this family (1)

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

Citations (9)

* 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
WO2012079531A1 (en) * 2010-12-16 2012-06-21 华为技术有限公司 Method and device for improving performance of mobile widget
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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101382958A (en) * 2008-10-21 2009-03-11 深圳华为通信技术有限公司 Web page loading method and device
KR101729097B1 (en) * 2014-06-09 2017-04-24 한국전자통신연구원 Method for sharing reference data among application programs executed by a plurality of virtual machines and Reference data management apparatus and system therefor
US10409728B2 (en) * 2017-05-09 2019-09-10 Futurewei Technologies, Inc. File access predication using counter based eviction policies at the file and page level

Patent Citations (9)

* 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
WO2012079531A1 (en) * 2010-12-16 2012-06-21 华为技术有限公司 Method and device for improving performance of mobile widget
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》.2002,全文. *
姚静.微信小程序页面路由原理.《电脑知识与技术》.2019,第15卷(第28期),全文. *

Also Published As

Publication number Publication date
CN112579096A (en) 2021-03-30

Similar Documents

Publication Publication Date Title
WO2021139127A1 (en) Method and apparatus for running mini program, electronic device, and storage medium
US11403117B2 (en) Methods for processing mini program, and related devices
CN111625224B (en) Code generation method, device, equipment and storage medium
CN112861057B (en) Page rendering method, device, equipment and storage medium based on applet
CN111767069B (en) Applet processing method, server, device and storage medium
CN112000394B (en) Method, apparatus, device and storage medium for accessing applet
US8626786B2 (en) Dynamic language checking
US8850414B2 (en) Direct access of language metadata
CN111881387B (en) Data processing method, device, equipment and medium for small program
CN112015468B (en) Interface document processing method and device, electronic equipment and storage medium
CN112506854B (en) Page template file storage and page generation methods, devices, equipment and media
US11775309B2 (en) Exception stack handling method, system, electronic device and storage medium
CN111767089A (en) Method, device and equipment for loading file and storage medium
CN113722647A (en) Method and device for displaying information
CN112579096B (en) Method, device, equipment and medium for compiling and loading applet startup file
US11689630B2 (en) Request processing method and apparatus, electronic device, and computer storage medium
KR102583532B1 (en) Scheduling method and apparatus, device and storage medium
US20190220294A1 (en) Using lightweight jit compilation for short-lived jvms on parallel distributing computing framework
CN111639116B (en) Data access connection session protection method and device
WO2023169193A1 (en) Method and device for generating smart contract
CN111966877A (en) Front-end service method, device, equipment and storage medium
CN112379885B (en) Applet compiling method, device, equipment and readable storage medium
CN112379945A (en) Method, device, equipment and storage medium for running application
CN110960858A (en) Game resource processing method, device, equipment and storage medium
CN111291201B (en) Multimedia content score processing method and device and electronic equipment

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