CN112506582B - Method, device, equipment and medium for processing small program data packet - Google Patents

Method, device, equipment and medium for processing small program data packet Download PDF

Info

Publication number
CN112506582B
CN112506582B CN202011511481.4A CN202011511481A CN112506582B CN 112506582 B CN112506582 B CN 112506582B CN 202011511481 A CN202011511481 A CN 202011511481A CN 112506582 B CN112506582 B CN 112506582B
Authority
CN
China
Prior art keywords
access
applet
pages
data packets
page
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
CN202011511481.4A
Other languages
Chinese (zh)
Other versions
CN112506582A (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 CN202011511481.4A priority Critical patent/CN112506582B/en
Publication of CN112506582A publication Critical patent/CN112506582A/en
Application granted granted Critical
Publication of CN112506582B publication Critical patent/CN112506582B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented

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 Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a method, a device, equipment and a medium for processing small program data packets, and relates to the field of data processing. The specific implementation scheme is as follows: obtaining access records of the applet from a server to determine historical access amounts of a plurality of access pages of the applet based on the access records; dividing the plurality of access pages into at least two groups according to the historical access quantity of the plurality of access pages; respectively packaging configuration information corresponding to each access page in each group in at least two groups to obtain at least two data packets of the applet; and sending at least two data packets for downloading by the user client to the server. In addition, by splitting the small program data package into a plurality of data packages, the bandwidth pressure of the small program host application program when the small program data package is pre-downloaded or opened is reduced, and the user flow and the bandwidth cost are saved.

Description

Method, device, equipment and medium for processing small program data packet
Technical Field
The application discloses a method, a device, equipment and a medium for processing small program data packets, relates to the technical field of data processing, and particularly relates to the technical field of small programs.
Background
An applet is a purely offline working runtime ecology that is physically isolated by a rendering layer and a logical layer. Because the applet works offline, the applet needs to be downloaded and opened after the applet package is opened before the applet is started, the volume of the applet package can directly influence the experience of a user when the applet scene needs to be downloaded and opened.
However, as the function of the continuous iteration of the applet developer makes the applet package more and more bulky, in addition, the packetization and independent packetization techniques have little effect on the reduction of the applet package volume due to the cooperation of the applet developer. Therefore, from the applet framework side, there is an urgent need to provide a more efficient applet volume reduction technique.
Disclosure of Invention
The application provides a small program data packet processing method, device, equipment and storage medium.
According to a first aspect of the present application, there is provided a method for processing an applet packet, comprising:
obtaining an access record of an applet from a server to determine historical access amounts of a plurality of access pages of the applet from the access record;
Dividing the plurality of access pages into at least two groups according to the historical access amounts of the plurality of access pages;
respectively packaging configuration information corresponding to each access page in each group in the at least two groups to obtain at least two data packets of the applet;
and sending the at least two data packets for downloading by the user client to the server.
As a first possible scenario of an aspect of the present application, the dividing the plurality of access pages into at least two groups according to the historical access amounts of the plurality of access pages includes:
sorting the plurality of access pages according to the order of the historical access quantity from large to small;
acquiring the access pages ordered in the first n from the plurality of access pages; the sum of the historical access amounts of the access pages sequenced in the first n is larger than or equal to an access amount threshold value, and the value of n is smaller than or equal to a number threshold value;
dividing the access pages ordered in the first n into one group, and dividing the rest access pages in the plurality of access pages into another group.
As a second possible scenario of an aspect of the present application, the acquiring, from the plurality of access pages, the access pages ordered before the first n access pages further includes:
Accumulating the historical access quantity of each access page one by one according to the sorting, and stopping accumulating until the historical access total quantity is larger than or equal to the access quantity threshold value, or stopping accumulating when the accumulated number of the access pages is equal to the number threshold value;
and taking the accumulated number of the access pages as the value of n under the condition that the historical access total amount is larger than or equal to the access amount threshold value and the accumulated number of the access pages is smaller than or equal to the number threshold value.
According to a second aspect of the present application, there is provided an applet packet processing method, comprising:
responding to access operation of a target page of an applet, and acquiring a target data packet in at least two data packets of the applet from a server, wherein the target data packet comprises configuration information of the target page;
according to the configuration information in the target data packet, displaying the target page, and downloading the rest data packets except the target data packet from the server
As a first possible scenario of another aspect of the present application, the method further comprises:
Monitoring the access quantity of the applet to each access page to obtain access quantity information;
and sending the access amount information to the server to generate an access record.
According to a third aspect of the present application, there is provided a method for processing an applet packet, comprising:
sending an access record of the applet to a development terminal;
receiving and storing at least two data packets of the applet generated by the development terminal according to the access record;
when a user client detects access operation to a target page of an applet, sending a target data packet in at least two data packets of the applet to the user client, wherein the target data packet contains configuration information of the target page;
and providing the user client with the downloading of the rest data packets except the target data packet in the at least two data packets.
As a first possible scenario of another aspect of the present application, the method further comprises:
acquiring access amount information from the user client;
and generating the access record according to the access amount information.
According to a fourth aspect of the present application, there is provided an applet data packet processing apparatus comprising:
The acquisition module is used for acquiring access records of the applet from the server so as to determine historical access amounts of a plurality of access pages of the applet according to the access records;
the dividing module is used for dividing the plurality of access pages into at least two groups according to the historical access quantity of the plurality of access pages;
the packaging module is used for respectively packaging configuration information corresponding to each access page in each group in the at least two groups to obtain at least two data packets of the applet;
and the sending module is used for sending the at least two data packets for downloading by the user client to the server.
According to a fifth aspect of the present application, there is provided an applet data packet processing apparatus comprising:
the response module is used for responding to the access operation of the target page of the applet, and acquiring the target data packet in at least two data packets of the applet from the server, wherein the target data packet contains the configuration information of the target page;
and the processing module is used for displaying the target page according to the configuration information in the target data packet and downloading the rest data packets except the target data packet from the server.
According to a sixth aspect of the present application, there is provided an applet data packet processing apparatus comprising:
the record sending module is used for sending the access record of the applet to the development terminal;
the storage module is used for receiving and storing at least two data packets of the applet generated by the development terminal according to the access record;
the system comprises a first downloading module, a second downloading module and a first downloading module, wherein the first downloading module is used for sending target data packets in at least two data packets of an applet to a user client when the user client detects access operation to a target page of the applet, and the target data packets contain configuration information of the target page;
and the second downloading module is used for providing the user client with the downloading of the rest data packets except the target data packet in the at least two data packets.
According to a seventh aspect of the present application, there is provided 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 the first aspect, or the method of the second aspect, or the method of the third aspect.
According to an eighth aspect of the present application, there is provided a non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of the first aspect, or the method of the second aspect, or the method of the third aspect.
According to a ninth aspect of the present application, there is provided a computer program product for implementing the method of the first aspect, or the method of the second aspect, or the method of the third aspect, when instructions in the computer program product are executed by a processor.
It should be understood that the description of this section is not intended to identify key or critical features of the embodiments of the application or to delineate the scope of the application. Other features of the present application will become apparent from the description that follows.
Drawings
The drawings are for better understanding of the present solution and do not constitute a limitation of the present application. Wherein:
fig. 1 is a flowchart of a method for processing an applet packet according to a first embodiment of the present application;
fig. 2 is a schematic sub-flowchart for grouping a plurality of access pages according to a second embodiment of the present application;
fig. 3 is a flow chart of a method for processing an applet packet according to a third embodiment of the present application;
Fig. 4 is a flow chart of a method for processing an applet packet according to a fourth embodiment of the present application;
fig. 5 is a flow chart of a method for processing an applet packet according to a fifth embodiment of the present application;
fig. 6 is a flow chart of a method for processing an applet packet according to a sixth embodiment of the present application;
fig. 7 is an interaction diagram of an applet packet processing method according to a seventh embodiment of the present application;
fig. 8 is a schematic structural diagram of an applet packet processing device according to an eighth embodiment of the present application;
fig. 9 is a schematic structural diagram of an applet packet processing device according to a ninth embodiment of the present application;
fig. 10 is a schematic structural diagram of an applet packet processing device according to a tenth embodiment of the present application;
fig. 11 is a block diagram of an electronic device for implementing the applet packet processing method of 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.
Before describing the present embodiment in detail, for ease of understanding, general key terms will be introduced and explained first:
the common sub-package of the applet means that in some cases, a developer needs to divide the intelligent applet into different sub-packages, package the intelligent applet into different sub-packages during construction, and load the intelligent applet as required during use. In the packaging of the intelligent applet, a main package is default, and the main package contains a starting page and a public resource/JS script which is used by all the sub-packages.
The applet is a feature type of package in the applet that can run independently of the main package and other packages. When the pages in the independent sub-package enter the applet, the main package does not need to be downloaded. The developer can configure certain pages with certain functional independence into independent sub-packets according to the needs, and the independent sub-packets can run without depending on a main packet, so that the starting speed of sub-packet pages can be improved to a great extent.
The applet package is pre-downloaded: the method refers to downloading the applet package in advance before the applet is opened, and the download expense of the applet package is saved when the user opens the applet package.
In the related art, when the volume of the applet package is reduced, depending on the capability provided by the applet framework by a developer, the two-level pages which are not distributed as an entry can be respectively divided by sub-packaging and independent sub-packaging, or split according to the resource type, so that the logic code in the main package is reduced, and useless resources are removed. However, the existing method for simplifying the volume of the applet is high in dependence on the developer.
In view of the above problems, the present application proposes a method for processing an applet data packet, where an access record of the applet is obtained from a server through a development terminal, so as to determine historical access amounts of a plurality of access pages of the applet according to the access record, divide the plurality of access pages into at least two groups according to the historical access amounts of the plurality of access pages, package configuration information corresponding to each access page in the groups for each of the at least two groups, respectively, so as to obtain at least two data packets of the applet, and send the at least two data packets for downloading by a user client to the server.
The following describes a method, an apparatus, a device, and a storage medium for processing an applet packet according to an embodiment of the present application with reference to the accompanying drawings.
Fig. 1 is a flowchart of a method for processing an applet packet according to an embodiment of the present application.
The embodiment of the application is exemplified by the configuration of the small program data packet processing method in the small program data packet processing device, and the small program data packet processing device can be applied to any electronic equipment so that the electronic equipment can execute small program data packet processing functions.
The electronic device may be a personal computer (Personal Computer, abbreviated as PC), a cloud device, a mobile device, etc., and the mobile device may be a hardware device with various operating systems, such as a mobile phone, a tablet computer, a personal digital assistant, a wearable device, a vehicle-mounted device, etc.
As shown in fig. 1, the applet packet processing method may include the following steps:
step 101, obtaining an access record of the applet from the server to determine a historical access amount of a plurality of access pages of the applet based on the access record.
As a possible scenario, the applet packet processing method according to the embodiment of the present application may be executed by a development terminal for developing an applet.
It can be appreciated that after the user accesses each page of the applet, the server may store an access record of the applet accessed by the user, so that the development end may obtain the access record of the applet from the server. The access record may include access path information of all access pages of the applet accessed by the user, access amount information of each access page, and the like.
Wherein, every time the user opens a page of the applet, the page is recorded 1 time, the user opens the same page a plurality of times, and the value of the page access amount is accumulated.
The historical access amount of the access page refers to the sum of page browsing amounts of the access page in the historical time.
In this embodiment of the present invention, after the development terminal obtains the access record of the applet from the server, the development terminal may determine the historical access amounts of a plurality of access pages of the applet according to the access information of each access page recorded in the access record of the applet.
Step 102, dividing the plurality of access pages into at least two groups according to the historical access amount of the plurality of access pages.
In this embodiment of the present application, after determining the historical access amounts of the plurality of access pages of the applet according to the access record, the plurality of access pages may be divided into at least two groups according to the historical access amounts of the plurality of access pages.
It will be appreciated that the historical access volume of the top three access pages in most applets already covers 80% of the page view volume, and therefore the plurality of access pages can be divided into at least two groups according to the historical access volume of each access page.
As a possible implementation manner, the plurality of access pages may be ordered in order of from large to small in terms of the historical access amount of the access pages, the access pages ordered before a certain value are divided into a group, and the rest of the access pages are divided into a group.
As an example, assuming that there are 30 access pages in total, after the plurality of access pages are ordered, the first 5 access pages may be divided into one group and the rest of the access pages may be divided into one group.
Also for example, assuming that there are 30 access pages in total, it is necessary to divide 30 access pages into three groups, after sorting a plurality of access pages, the access pages sorted in the top 5 may be divided into one group, the access pages sorted in the 6 th to 15 th may be divided into one group, and the rest of the access pages may be divided into one group.
Step 103, respectively packaging configuration information corresponding to each access page in the group for each group in at least two groups to obtain at least two data packets of the applet.
The configuration information of the access page may be path configuration information of the access page, for example, files such as a swan template, css style, js code, etc. corresponding to the access page path.
In this embodiment, after a plurality of access pages are divided into at least two groups according to historical access amounts of the plurality of access pages, for each group in the at least two groups, according to the access pages included in each group, configuration information corresponding to each access page in the same group is packaged into a data packet, so as to obtain at least two data packets of an applet.
As an example, assuming that a plurality of access pages are divided into two groups, configuration information corresponding to each access page in one group may be packaged into one packet and denoted as a, and configuration information corresponding to each access page in the other group may be packaged into one packet and denoted as B, so as to obtain two packets of the applet.
Step 104, at least two data packets for downloading by the user client are sent to the server.
In this embodiment of the present application, after obtaining at least two data packets of the applet, the at least two data packets may be sent to the server, so that the user client may download the at least two data packets from the server.
It should be noted that, when at least two data packets for downloading by the user client are sent to the server, the applet common package may also be uploaded to the server, so that the user client may download the applet common package from the server.
According to the applet data packet processing method, the access records of the applet are obtained from the server, so that the historical access quantity of a plurality of access pages of the applet is determined according to the access records, further, after the plurality of access pages are grouped based on the historical access quantity of the plurality of access pages, the configuration information corresponding to each access page in the group is respectively packed to obtain the corresponding data packet of each group, and the corresponding data packet of each group for downloading by the user client is sent to the server.
On the basis of the above embodiment, when the plurality of access pages are divided into at least two groups in the above step 102, the plurality of access pages may be divided into two groups according to the historical access amount of each access page, which is described in detail below with reference to fig. 2, and fig. 2 is a schematic sub-flow diagram for grouping the plurality of access pages provided in the second embodiment of the present application.
As shown in fig. 2, the step 102 may further include the following steps:
step 201, sorting the plurality of access pages in the order of the history access amount from large to small.
In this embodiment of the present application, after determining the historical access amounts of a plurality of access pages of the applet according to the access record of the applet obtained from the server, the plurality of access pages may be ordered according to the order of the historical access amounts from large to small, and the access pages with large historical access amounts may be ordered before the access pages with small historical access amounts are ordered after the access pages with small historical access amounts are ordered, so as to obtain the ordering of the plurality of access pages.
Step 202, accumulating the historical access quantity of each access page one by one according to the sequence, stopping accumulating until the historical access total quantity is larger than or equal to the access quantity threshold value, or stopping accumulating when the number of accumulated access pages is equal to the number threshold value.
The access amount threshold is a value preset by a developer, and the number threshold is a value preset by the developer.
In a possible case, after determining the ordering of the plurality of access pages, the historical access amounts corresponding to the access pages of the first order and the access pages of the second order can be accumulated to obtain an accumulated historical access amount, and further, the accumulated historical access amount and the historical access amount corresponding to the access pages of the third order are accumulated, so that the historical access amounts of the access pages are accumulated one by one according to the ordering, and the accumulation is stopped until the total historical access amount is greater than or equal to an access amount threshold.
In another possible case, after determining the ordering of the plurality of access pages, the historical access amounts corresponding to the access pages of the first order and the access pages of the second order can be accumulated to obtain an accumulated historical access amount, and further, the accumulated historical access amount and the historical access amount corresponding to the access pages of the third order are accumulated, so that the historical access amounts of the access pages are accumulated one by one according to the ordering, and the accumulation is stopped until the number of the accumulated access pages is equal to the number threshold value.
As an example, assuming that the number threshold is 5, after determining the order of the plurality of access pages, the historical access amounts of the access pages are accumulated one by one according to the order, and the accumulation is stopped until the number of accumulated access pages is 5. It is understood that the historical access amounts of the access pages ordered in the top 5 are accumulated to obtain the historical access total amount.
In step 203, when the historical access total is greater than or equal to the access threshold and the number of accumulated access pages is less than or equal to the number threshold, the number of accumulated access pages is taken as the value of n.
In the embodiment of the application, after the ordering of the plurality of access pages is determined, the historical access amount of each access page is accumulated one by one according to the ordering, and when the historical access total amount is determined to be greater than or equal to the access amount threshold value and the number of the accumulated access pages is determined to be less than or equal to the number threshold value, the number of the accumulated access pages is taken as the value of n. Therefore, the accumulated historical access total amount of the access pages covers most of page browsing amount of the access pages of the applet, and the purpose of simplifying the volume of the applet package is achieved when the data package of the applet is split.
As an example, assuming that the number threshold is 5, when the historical access amounts of the access pages are accumulated one by one according to the order, when the historical access total amount is greater than or equal to the access amount threshold, the number of accumulated access pages is determined to be 4, and the number of accumulated access pages is determined to be less than or equal to the number threshold, at this time, the number 4 of accumulated access pages is taken as the value of n.
Step 204, obtaining the access pages ordered in the top n from the plurality of access pages.
Wherein, the sum of the historical access amounts of the access pages sequenced in the first n is larger than or equal to an access amount threshold value, and the value of n is smaller than or equal to a number threshold value.
In this embodiment of the present application, after the value of n is determined, the access pages ranked in the first n may be obtained from multiple access pages.
As an example, assuming n is 4, the access pages ordered in the top 4 may be acquired from among the plurality of access pages.
In step 205, the top n access pages are divided into one group, and the rest of the plurality of access pages are divided into another group.
In the present application, after the access pages ordered in the first n are obtained from the plurality of access pages, the access pages ordered in the first n may be divided into one group, and the rest of the access pages in the plurality of access pages may be divided into another group.
For example, assuming that n is 4, after the access pages ordered in the first 4 are acquired from the plurality of access pages, the access pages ordered in the first 4 may be divided into one group, and the remaining access pages in the plurality of access pages may be divided into another group.
In the embodiment of the application, according to the historical access quantity of the plurality of access pages, the access pages sequenced in the first n are divided into one group, the rest of the plurality of access pages are divided into another group, the plurality of access pages of the applet are grouped, the configuration information corresponding to each access page is packaged into a data packet in a group unit, and the purpose of simplifying the volume of the applet data packet is achieved because the access pages of the applet are only split.
In the above embodiment, the development end generates at least two data packets of the applet, after sending the at least two data packets for downloading by the user client to the server, the user client may download the at least two data packets from the server after detecting the access operation of the user to the page of the applet, so as to display the page accessed by the user according to the configuration information in the data packets. Fig. 3 is a flow chart of a method for processing an applet packet according to a third embodiment of the present application.
As shown in fig. 3, the applet packet processing method may be executed by a user client, and may include the following steps:
in step 301, in response to an access operation to a target page of the applet, a target packet of at least two packets of the applet is obtained from the server.
The target data packet contains configuration information of a target page. The target page refers to the page of the applet to be accessed by the user. The configuration information of the target page may be path configuration information of the target page, for example, files such as a swan template, css style, js code and the like corresponding to a page path.
In this embodiment of the present application, the access operation to the target page of the applet may be an operation triggered by the user by clicking the target page, or an operation triggered by the user by touching the target page, or an operation triggered by the user by voice control, where the manner of the access operation is not limited in this application.
In this embodiment, when a user needs to access a page of an applet, an access operation may be performed on a target page of the applet to be accessed, and after the user client monitors the access operation of the user, the user client responds to the access operation of the user on the target page of the applet to obtain a target data packet in at least two data packets of the applet from a server.
As an example, assume that a server stores a packet a, a packet B, and a packet C of an applet, where the packet B includes configuration information of a target page that a user needs to access. In this case, after detecting an access operation of the user to the target page of the applet, the user client acquires the target packet B from the server in response to the access operation.
And 302, displaying the target page according to the configuration information in the target data packet, and downloading the rest data packets except the target data packet from the server.
In this embodiment of the present application, after a user client obtains a target data packet from a server, decompresses the target data packet to obtain configuration information in the target data packet, and may display a target page according to the configuration information of the target page included in the target data packet.
In this embodiment of the present application, the user client may obtain, by priority, the target data packet from the server, so that when the target page is displayed according to the configuration information in the target data packet, the rest of the at least two data packets except for the target data packet may be asynchronously downloaded from the server.
Continuing with the example in step 301, after the target data packet B is preferentially acquired from the server, the target page may be displayed according to the configuration information after the configuration information of the target page included in the target data packet B, and at this time, the data packet a and the data packet C are asynchronously downloaded from the server.
According to the applet data packet processing method, a user client responds to access operation of a target page of an applet, after obtaining target data packets in at least two data packets of the applet from a server, the target page is displayed according to configuration information in the target data packets, and other data packets except the target data packets in the at least two data packets are downloaded from the server. Because at least two data packets of the applet stored in the server are obtained by splitting the applet main packet, when a user accesses a page, the data packets containing configuration information of the user's access page are downloaded preferentially, so that the user traffic is saved, and the page display speed is improved.
Based on the embodiment, the user client can display the access pages based on the access operation of the user, and monitor the access quantity of each access page. Fig. 4 is a flow chart of a method for processing an applet packet according to a fourth embodiment of the present application.
As shown in fig. 4, the applet packet processing method may further include the following steps:
in step 401, the access amount of the applet to each access page is monitored to obtain access amount information.
The access amount of the access page can be the number of times the user browses the page. For example, each time a user opens a page of an applet, the user opens the same page a number of times, and the value of the page access amount is accumulated. The access amount information may include information such as a history of access amounts of access pages.
In the embodiment of the application, the user client can monitor the access page operation of opening the applet each time by the user to obtain the access amount and the access path information of each access page, and further generate the access amount information based on the historical access amount of each access page.
Step 402, sending the access volume information to a server to generate an access record.
In the embodiment of the application, the user client detects the historical access amount of the applet to each access page, and after the access amount information is obtained, the access amount information and the access path information of the corresponding access page can be sent to the server, so that the server generates the access record after receiving the access amount information and the access path information of the corresponding access page.
Further, the development end may acquire an access record of the applet from the server, so as to determine historical access amounts of a plurality of access pages of the applet according to the access record, divide the plurality of access pages into at least two groups according to the historical access amounts of the plurality of access pages, package configuration information corresponding to each access page in the groups for each group in the at least two groups, so as to obtain at least two data packets of the applet, and send the at least two data packets for downloading by the user client to the server.
Thus, the user client obtains access amount information by monitoring the access amount of the applet to each access page, and sends the access amount information to the server to generate an access record. Therefore, the development end splits the main package of the small program based on the access amount information contained in the access record generated by the server, and the whole splitting process can realize the simplification of the main package of the small program without participation of a developer.
On the basis of the embodiment, the user server sends the access amount information to the server, so that after the server generates the access record, the server can send the access record of the applet to the development end, and receive and store at least two data packets of the applet generated by the development end according to the access record. Fig. 5 is a flow chart of a method for processing an applet packet according to a fifth embodiment of the present application.
As shown in fig. 5, the applet packet processing method may be executed by a server, and may include the following steps:
step 501, sending an access record of the applet to the development end.
The access record may include information about access amounts of the access pages, for example, the access record may include access paths and historical access amounts of the access pages.
In the embodiment of the application, after the user client monitors the access amount of the applet to each access page to obtain the access information, the access amount information is sent to the server so as to generate an access record in the server.
After the server generates the access record, the server may send the access record of the applet to the development end, so that the development end generates at least two data packets of the applet according to the received access record of the applet.
As a possible implementation manner, after the development end receives the access record of the applet sent by the server, the historical access amounts of a plurality of access pages of the applet can be determined according to the access record. Further, the plurality of access pages are divided into at least two groups according to the historical access quantity of the plurality of access pages, and configuration information corresponding to each access page in each group in the at least two groups is respectively packed to obtain at least two data packets of the applet.
As a possible case, when the development end divides the plurality of access pages into two groups according to the historical access amounts of the plurality of access pages, the plurality of access pages can be ordered according to the order of the historical access amounts from large to small, and the access pages ordered in the first n are acquired from the plurality of access pages; the top n access pages are divided into one group, and the rest of the plurality of access pages are divided into another group. Wherein, the sum of the historical access amounts of the access pages sequenced in the first n is larger than or equal to an access amount threshold value, and the value of n is smaller than or equal to a number threshold value.
As an example, assuming that the number threshold is 5, when the historical access amounts of the access pages are accumulated one by one according to the order, when the historical access total amount is greater than or equal to the access amount threshold, the number of accumulated access pages is determined to be 4, and the number of accumulated access pages is determined to be less than or equal to the number threshold, at this time, the number 4 of accumulated access pages is taken as the value of n.
Assuming that there are 30 access pages in total, it is necessary to divide 30 access pages into two groups, and after sorting a plurality of access pages, the access pages sorted in the first 4 may be divided into one group, and the rest of access pages may be divided into one group.
Step 502, at least two data packets of the applet generated by the development terminal according to the access record are received and stored.
In this embodiment of the present application, after the development end generates at least two data packets of the applet according to the access record sent by the server, the at least two data packets may be sent to the server, and after the server receives the at least two data packets of the applet generated by the development end according to the access record, the server stores the received at least two data packets.
In step 503, when the user client detects an access operation to the target page of the applet, the target data packet in at least two data packets of the applet is sent to the user client, where the target data packet includes configuration information of the target page.
The target page refers to a page of an applet to be accessed by a user. The configuration information of the target page may be path configuration information of the target page, for example, files such as a swan template, css style, js code and the like corresponding to a page path.
In this embodiment of the present application, the access operation to the target page of the applet may be an operation triggered by the user by clicking the target page, or an operation triggered by the user by touching the target page, or an operation triggered by the user by voice control, where the manner of the access operation is not limited in this application.
In this embodiment of the present application, when a user needs to access a page of an applet, an access operation may be performed on a target page of the applet that needs to be accessed by a user client, and after the user client monitors the access operation of the user, the server may send a target data packet of at least two data packets of the applet to the user client. After receiving the target data packet sent by the server side, the user client can display the target page according to the configuration information in the target data packet.
As an example, assume that a server stores a packet a, a packet B, and a packet C of an applet, where the packet B includes configuration information of a target page that a user needs to access. In this case, when the user client detects an access operation of the user to the target page of the applet, the server transmits a data packet B to the user client.
Step 504, providing the user client with the download of the rest of the at least two data packets except the target data packet.
In this embodiment of the present application, when the server sends the target data packet of the at least two data packets of the applet to the user client, the server may further provide the remaining data packets except for the target data packet of the at least two data packets to the user client, so that the user client downloads the remaining data packets.
Continuing with the example in step 503, after the server sends the target data packet B to the user client, the user client may display the target page according to the configuration information of the target page included in the target data packet B, and at this time, the server may further send the data packet a and the data packet C to the user client, so that the user client may asynchronously download the data packet a and the data packet C from the server.
According to the applet data packet processing method, after the server sends the access record of the applet to the development end, at least two data packets of the applet generated by the development end according to the access record can be received and stored, when the user client detects the access operation to the target page of the applet, the user client sends the target data packets of the applet in the at least two data packets, and then downloads other data packets except the target data packets in the at least two data packets are provided for the user client. Therefore, the main package of the small program is split based on the access record of the small program to generate at least two data packages, which is beneficial to reducing the bandwidth pressure when the user client downloads the data packages and saving the user flow and the bandwidth cost.
On the basis of the above embodiment, the server may acquire the access amount information from the user client to generate the access record. Fig. 6 is a flow chart of a method for processing an applet packet according to a sixth embodiment of the present application.
As shown in fig. 6, the applet processing packet processing method may be executed by a server, and may further include the following steps:
in step 601, access amount information is acquired from a user client.
The access amount information may include information such as access path information of an access page and a history access amount. The access amount of the access page may be the number of times the user browses the page. For example, each time a user opens a page of an applet, the user opens the same page a number of times, and the value of the page access amount is accumulated.
In the embodiment of the application, the user client can monitor the access amount of the applet to each access page to obtain the access amount of each access page, and further generates the access amount information based on the access amount of each access page. The user client transmits the generated access amount information to the server, so that the server obtains the access amount information from the user client.
Step 602, generating an access record according to the access amount information.
In this embodiment of the present application, after the server obtains the access amount information from the user client, the server may generate the access record according to the access amount information and the access path information corresponding to the access page.
Further, the server sends the generated access record to the development end, after the development end obtains the access record of the applet from the server, the development end can determine the historical access amount of a plurality of access pages of the applet according to the access record, so as to divide the plurality of access pages into at least two groups according to the historical access amount of the plurality of access pages, package the configuration information corresponding to each access page in the groups for each group in at least two groups respectively to obtain at least two data packets of the applet, and send the at least two data packets for downloading by the user client to the server.
Therefore, after the server obtains the access amount information from the user client, the access record is generated according to the access amount information, and the development terminal splits the applet main package based on the access amount information contained in the access record generated by the server, so that the whole splitting process can realize simplification of the applet main package without participation of a developer.
Based on the above embodiments, another method for processing small program data packets is provided.
Fig. 7 is an interaction diagram of an applet packet processing method according to a seventh embodiment of the present application.
As shown in fig. 7, the applet packet processing method may include the steps of:
in step 701, the user client monitors the access amount of the applet to each access page to obtain access amount information.
In step 702, the user client sends access amount information to the server.
In step 703, after receiving the access amount information sent by the user client, the server generates an access record of the applet according to the access amount information.
Step 704, the server sends the access record of the applet to the development side.
Step 705, after the development end obtains the access record of the applet from the server, the development end determines the historical access amounts of a plurality of access pages of the applet according to the access record.
In step 706, the development end divides the multiple access pages into at least two groups according to the historical access amounts of the multiple access pages.
Step 707, the developing end packages the configuration information corresponding to each access page in the group for each group in at least two groups, so as to obtain at least two data packets of the applet.
In step 708, the development end sends at least two packets of the applet to the server.
Step 709, after receiving the at least two data packets of the applet sent by the initiator, the server stores the at least two data packets of the applet.
In step 710, the user client detects a user access operation to a target page of the applet.
In step 711, the server sends the target packet of the at least two packets of the applet to the user client.
The target data packet contains configuration information of a target page.
Step 712, the user client displays the target page according to the configuration information of the target page included in the target data packet.
In step 713, the server sends the remaining packets of the at least two packets except the target packet to the user client.
It should be noted that, the specific implementation process of the steps 701 to 713 is described in detail in the first embodiment to the sixth embodiment, and will not be repeated here.
In order to implement the above embodiment, the present application proposes an applet packet processing apparatus.
Fig. 8 is a schematic structural diagram of an applet packet processing device according to an eighth embodiment of the present application.
As shown in fig. 8, the applet packet processing apparatus 800 may include: the system comprises an acquisition module 810, a division module 820, a packaging module 830 and a sending module 840.
Wherein, the obtaining module 810 is configured to obtain an access record of the applet from the server, so as to determine historical access amounts of a plurality of access pages of the applet according to the access record.
The dividing module 820 is configured to divide the plurality of access pages into at least two groups according to the historical access amounts of the plurality of access pages.
And the packaging module 830 is configured to package, for each of the at least two groups, configuration information corresponding to each access page in the group, so as to obtain at least two data packets of the applet.
A sending module 840, configured to send at least two data packets for downloading by the user client to the server.
As a possible scenario, the partitioning module 820 may also be used to:
ordering the plurality of access pages according to the sequence from big to small of the historical access quantity; acquiring the access pages ordered in the first n from a plurality of access pages; the sum of the historical access amounts of the access pages sequenced in the first n is larger than or equal to an access amount threshold value, and the value of n is smaller than or equal to a number threshold value; the top n access pages are divided into one group, and the rest of the plurality of access pages are divided into another group.
As another possible scenario, the partitioning module 820 may also be used to:
Accumulating the historical access quantity of each access page one by one according to the sequence until the historical access total quantity is greater than or equal to the access quantity threshold value, or stopping accumulating when the number of accumulated access pages is equal to the number threshold value; and taking the number of the accumulated access pages as the value of n under the condition that the historical access total amount is larger than or equal to the access amount threshold value and the number of the accumulated access pages is smaller than or equal to the number threshold value.
It should be noted that the explanation of the embodiments of the method for processing the applet data packet in fig. 1 and fig. 2 is also applicable to the applet data packet processing device, and is not repeated here.
According to the applet data packet processing device, the access records of the applet are obtained from the server, so that the historical access quantity of a plurality of access pages of the applet is determined according to the access records, further, after the plurality of access pages are grouped based on the historical access quantity of the plurality of access pages, the configuration information corresponding to each access page in the group is respectively packed to obtain the corresponding data packet of each group, and the corresponding data packet of each group for downloading by the user client is sent to the server.
To implement the above embodiment, the present application proposes another applet packet processing device.
Fig. 9 is a schematic structural diagram of an applet packet processing apparatus according to a ninth embodiment of the present application.
As shown in fig. 9, the applet packet processing apparatus 900 may include: a response module 910 and a processing module 920.
The response module 910 is configured to obtain, from the server, a target data packet of at least two data packets of the applet in response to an access operation to a target page of the applet, where the target data packet includes configuration information of the target page.
The processing module 920 is configured to display the target page according to the configuration information in the target data packet, and download the rest of the at least two data packets except the target data packet from the server.
As a possible scenario, the applet data packet processing apparatus 900 may further include:
the monitoring module is used for monitoring the access quantity of the applet to each access page to obtain access quantity information;
and the sending module is used for sending the access amount information to the server so as to generate an access record.
It should be noted that the explanation of the embodiments of the method for processing the applet data packet in fig. 3 and fig. 4 is also applicable to the applet data packet processing device, and is not repeated here.
According to the applet data packet processing device, a user client responds to access operation of a target page of an applet, after obtaining target data packets in at least two data packets of the applet from a server, the user client displays the target page according to configuration information in the target data packets, and downloads other data packets except the target data packets in the at least two data packets from the server. Because at least two data packets of the applet stored in the server are obtained by splitting the applet main packet, when a user accesses a page, the data packets containing configuration information of the user's access page are downloaded preferentially, so that the user traffic is saved, and the page display speed is improved.
To implement the above embodiment, the present application proposes another applet packet processing device.
Fig. 10 is a schematic structural diagram of an applet packet processing apparatus according to a tenth embodiment of the present application.
As shown in fig. 10, the applet packet processing apparatus 100 may include: a record sending module 1001, a storage module 1002, a first downloading module 1003, and a second downloading module 1004.
The record sending module 1001 is configured to send an access record of the applet to the development end.
The storage module 1002 is configured to receive and store at least two data packets of an applet generated by the initiator according to the access record.
And the first downloading module 1003 is configured to send, to the user client, a target data packet in at least two data packets of the applet when the user client detects an access operation to a target page of the applet, where the target data packet includes configuration information of the target page.
A second downloading module 1004, configured to provide the user client with downloading of the remaining data packets except the target data packet in the at least two data packets.
As a possible case, the applet data packet processing apparatus 100 may further include:
the acquisition module is used for acquiring the access amount information from the user client;
and the generation module is used for generating an access record according to the access quantity information.
It should be noted that the explanation of the embodiments of the method for processing the applet data packet in fig. 5 and fig. 6 is also applicable to the applet data packet processing device, and is not repeated here.
According to the applet data packet processing device, after the server sends the access record of the applet to the development end, at least two data packets of the applet generated by the development end according to the access record can be received and stored, when the user client detects the access operation to the target page of the applet, the user client sends the target data packets of the applet in the at least two data packets, and then downloads other data packets except the target data packets in the at least two data packets are provided for the user client. Therefore, the main package of the small program is split based on the access record of the small program to generate at least two data packages, which is beneficial to reducing the bandwidth pressure when the user client downloads the data packages and saving the user flow and the bandwidth cost.
In order to achieve the above embodiments, the present application proposes 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 applet packet processing methods of embodiments one and two, or the applet packet processing methods of embodiments three and four, or the applet packet processing methods of embodiments five and six.
In order to implement the above-mentioned embodiments, the present application proposes a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the applet packet processing methods described in the first and second embodiments, or the applet packet processing methods described in the third and fourth embodiments, or the applet packet processing methods described in the fifth and sixth embodiments.
In order to implement the above embodiments, the present application proposes a computer program product for implementing the applet packet processing methods described in embodiments one and two, or the applet packet processing methods described in embodiments three and four, or the applet packet processing methods described in embodiments five and six, when the instructions in the computer program product are executed by a processor.
As shown in fig. 11, a block diagram of an electronic device for implementing the applet packet processing method according to an embodiment of the present application is shown. 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. 11, the apparatus 1100 includes a computing unit 1101 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 1102 or a computer program loaded from a storage unit 1108 into a Random Access Memory (RAM) 1103. In the RAM1103, various programs and data required for the operation of the device 1100 can also be stored. The computing unit 1101, ROM 1102, and RAM1103 are connected to each other by a bus 1104. An input/output (I/O) interface 1105 is also connected to bus 1104.
Various components in device 1100 are connected to I/O interface 1105, including: an input unit 1106 such as a keyboard, a mouse, etc.; an output unit 1107 such as various types of displays, speakers, and the like; a storage unit 1108, such as a magnetic disk, optical disk, etc.; and a communication unit 1109 such as a network card, modem, wireless communication transceiver, or the like. The communication unit 1109 allows the device 1100 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
The computing unit 1101 may be a variety of general purpose and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 1101 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 1101 performs the respective methods and processes described above. Such as applet packet processing methods, in some embodiments, the applet packet processing may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 1108. In some embodiments, some or all of the computer programs may be loaded and/or installed onto device 1100 via ROM1102 and/or communication unit 1109. When a computer program is loaded into the RAM1103 and executed by the computing unit 1101, one or more steps of the applet data packet processing method described above may be performed. Alternatively, in other embodiments, the computing unit 1101 may be configured to perform the applet packet processing method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), 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 ("Virtual Private Server" or simply "VPS") are overcome.
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 (16)

1. A method of applet packet processing, comprising:
obtaining an access record of an applet from a server to determine historical access amounts of a plurality of access pages of the applet from the access record;
dividing the plurality of access pages into at least two groups according to the historical access amounts of the plurality of access pages;
respectively packaging configuration information corresponding to each access page in each group in the at least two groups to obtain at least two data packets of the applet;
And sending the at least two data packets for downloading by the user client to the server.
2. The applet packet processing method according to claim 1, wherein the dividing the plurality of access pages into at least two groups according to the historical access amount of the plurality of access pages comprises:
sorting the plurality of access pages according to the order of the historical access quantity from large to small;
acquiring the access pages ordered in the first n from the plurality of access pages; the sum of the historical access amounts of the access pages sequenced in the first n is larger than or equal to an access amount threshold value, and the value of n is smaller than or equal to a number threshold value;
dividing the access pages ordered in the first n into one group, and dividing the rest access pages in the plurality of access pages into another group.
3. The applet packet processing method according to claim 2, wherein the acquiring the access pages ordered before the first n from the plurality of access pages further comprises:
accumulating the historical access quantity of each access page one by one according to the sorting, and stopping accumulating until the historical access total quantity is larger than or equal to the access quantity threshold value, or stopping accumulating when the accumulated number of the access pages is equal to the number threshold value;
And taking the accumulated number of the access pages as the value of n under the condition that the historical access total amount is larger than or equal to the access amount threshold value and the accumulated number of the access pages is smaller than or equal to the number threshold value.
4. A method of applet packet processing, comprising:
responding to access operation of a target page of an applet, and acquiring a target data packet in at least two data packets of the applet from a server, wherein the target data packet comprises configuration information of the target page; the at least two data packets are the historical access quantity of a plurality of access pages of the applet determined by a development end according to the access record of the applet, the plurality of access pages are divided into at least two groups according to the historical access quantity of the plurality of access pages, the configuration information corresponding to each access page in each group in the at least two groups is respectively packed to obtain at least two data packets of the applet, and the at least two data packets are sent to the server;
and displaying the target page according to the configuration information in the target data packet, and downloading the rest data packets except the target data packet in the at least two data packets from the server.
5. The applet data packet processing method according to claim 4, wherein the method further comprises:
monitoring the access quantity of the applet to each access page to obtain access quantity information;
and sending the access amount information to the server to generate an access record.
6. A method of applet packet processing, comprising:
sending an access record of an applet to a development end, so that the development end determines historical access amounts of a plurality of access pages of the applet according to the access record, divides the plurality of access pages into at least two groups according to the historical access amounts of the plurality of access pages, respectively packages configuration information corresponding to each access page in each group in the at least two groups to obtain at least two data packets of the applet, and sends the at least two data packets to a server;
receiving and storing at least two data packets of the applet generated by the development terminal according to the access record;
when a user client detects access operation to a target page of an applet, sending a target data packet in at least two data packets of the applet to the user client, wherein the target data packet contains configuration information of the target page;
And providing the user client with the downloading of the rest data packets except the target data packet in the at least two data packets.
7. The applet data packet processing method according to claim 6, wherein the method further comprises:
acquiring access amount information from the user client;
and generating the access record according to the access amount information.
8. An applet packet processing apparatus comprising:
the acquisition module is used for acquiring access records of the applet from the server so as to determine historical access amounts of a plurality of access pages of the applet according to the access records;
the dividing module is used for dividing the plurality of access pages into at least two groups according to the historical access quantity of the plurality of access pages;
the packaging module is used for respectively packaging configuration information corresponding to each access page in each group in the at least two groups to obtain at least two data packets of the applet;
and the sending module is used for sending the at least two data packets for downloading by the user client to the server.
9. The applet packet processing apparatus according to claim 8, wherein the partitioning module is further configured to:
Sorting the plurality of access pages according to the order of the historical access quantity from large to small;
acquiring the access pages ordered in the first n from the plurality of access pages; the sum of the historical access amounts of the access pages sequenced in the first n is larger than or equal to an access amount threshold value, and the value of n is smaller than or equal to a number threshold value;
dividing the access pages ordered in the first n into one group, and dividing the rest access pages in the plurality of access pages into another group.
10. The applet packet processing apparatus according to claim 9, wherein the partitioning module is further configured to:
accumulating the historical access quantity of each access page one by one according to the sorting, and stopping accumulating until the historical access total quantity is larger than or equal to the access quantity threshold value, or stopping accumulating when the accumulated number of the access pages is equal to the number threshold value;
and taking the accumulated number of the access pages as the value of n under the condition that the historical access total amount is larger than or equal to the access amount threshold value and the accumulated number of the access pages is smaller than or equal to the number threshold value.
11. An applet packet processing apparatus comprising:
the response module is used for responding to the access operation of the target page of the applet, and acquiring the target data packet in at least two data packets of the applet from the server, wherein the target data packet contains the configuration information of the target page; the at least two data packets are the historical access quantity of a plurality of access pages of the applet determined by a development end according to the access record of the applet, the plurality of access pages are divided into at least two groups according to the historical access quantity of the plurality of access pages, the configuration information corresponding to each access page in each group in the at least two groups is respectively packed to obtain at least two data packets of the applet, and the at least two data packets are sent to the server;
and the processing module is used for displaying the target page according to the configuration information in the target data packet and downloading the rest data packets except the target data packet from the server.
12. The applet packet processing apparatus according to claim 11, wherein the apparatus further comprises:
The monitoring module is used for monitoring the access quantity of the applet to each access page to obtain access quantity information;
and the sending module is used for sending the access amount information to the server so as to generate an access record.
13. An applet packet processing apparatus comprising:
the record sending module is used for sending an access record of the applet to a development end, so that the development end determines historical access amounts of a plurality of access pages of the applet according to the access record, divides the plurality of access pages into at least two groups according to the historical access amounts of the plurality of access pages, packages configuration information corresponding to each access page in each group in the at least two groups respectively to obtain at least two data packets of the applet, and sends the at least two data packets to a server;
the storage module is used for receiving and storing at least two data packets of the applet generated by the development terminal according to the access record;
the system comprises a first downloading module, a second downloading module and a first downloading module, wherein the first downloading module is used for sending target data packets in at least two data packets of an applet to a user client when the user client detects access operation to a target page of the applet, and the target data packets contain configuration information of the target page;
And the second downloading module is used for providing the user client with the downloading of the rest data packets except the target data packet in the at least two data packets.
14. The applet packet processing apparatus according to claim 13, wherein the apparatus further comprises:
the acquisition module is used for acquiring the access amount information from the user client;
and the generation module is used for generating the access record according to the access amount information.
15. 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-3, or the method of 4 or 5, or the method of 6 or 8.
16. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-3, or the method of 4 or 5, or
The method of 6 or 8.
CN202011511481.4A 2020-12-18 2020-12-18 Method, device, equipment and medium for processing small program data packet Active CN112506582B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011511481.4A CN112506582B (en) 2020-12-18 2020-12-18 Method, device, equipment and medium for processing small program data packet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011511481.4A CN112506582B (en) 2020-12-18 2020-12-18 Method, device, equipment and medium for processing small program data packet

Publications (2)

Publication Number Publication Date
CN112506582A CN112506582A (en) 2021-03-16
CN112506582B true CN112506582B (en) 2024-04-09

Family

ID=74921747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011511481.4A Active CN112506582B (en) 2020-12-18 2020-12-18 Method, device, equipment and medium for processing small program data packet

Country Status (1)

Country Link
CN (1) CN112506582B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108153794A (en) * 2016-12-02 2018-06-12 阿里巴巴集团控股有限公司 Page cache method for refreshing data, apparatus and system
CN108304410A (en) * 2017-01-13 2018-07-20 阿里巴巴集团控股有限公司 A kind of detection method, device and the data analysing method of the abnormal access page
WO2019000710A1 (en) * 2017-06-27 2019-01-03 北京金山安全软件有限公司 Page loading method, apparatus and electronic device
CN109740089A (en) * 2018-11-30 2019-05-10 东软集团股份有限公司 Collecting method, device, system, readable storage medium storing program for executing and electronic equipment
CN110020373A (en) * 2017-12-28 2019-07-16 北京京东尚科信息技术有限公司 The method and apparatus that static page is stored, browsed
CN111259294A (en) * 2019-12-31 2020-06-09 万表名匠(广州)科技有限公司 Page loading request response method, device, equipment and storage medium
CN111586126A (en) * 2020-04-28 2020-08-25 百度在线网络技术(北京)有限公司 Method, device and equipment for pre-downloading small program and storage medium
CN111796829A (en) * 2020-05-19 2020-10-20 北京三快在线科技有限公司 Applet updating method and device, electronic equipment and computer readable storage medium
CN111930382A (en) * 2020-09-21 2020-11-13 浙江口碑网络技术有限公司 Application page access method, device and equipment
CN112000394A (en) * 2020-08-27 2020-11-27 北京百度网讯科技有限公司 Method, apparatus, device and storage medium for accessing an applet

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108153794A (en) * 2016-12-02 2018-06-12 阿里巴巴集团控股有限公司 Page cache method for refreshing data, apparatus and system
CN108304410A (en) * 2017-01-13 2018-07-20 阿里巴巴集团控股有限公司 A kind of detection method, device and the data analysing method of the abnormal access page
WO2019000710A1 (en) * 2017-06-27 2019-01-03 北京金山安全软件有限公司 Page loading method, apparatus and electronic device
CN110020373A (en) * 2017-12-28 2019-07-16 北京京东尚科信息技术有限公司 The method and apparatus that static page is stored, browsed
CN109740089A (en) * 2018-11-30 2019-05-10 东软集团股份有限公司 Collecting method, device, system, readable storage medium storing program for executing and electronic equipment
CN111259294A (en) * 2019-12-31 2020-06-09 万表名匠(广州)科技有限公司 Page loading request response method, device, equipment and storage medium
CN111586126A (en) * 2020-04-28 2020-08-25 百度在线网络技术(北京)有限公司 Method, device and equipment for pre-downloading small program and storage medium
CN111796829A (en) * 2020-05-19 2020-10-20 北京三快在线科技有限公司 Applet updating method and device, electronic equipment and computer readable storage medium
CN112000394A (en) * 2020-08-27 2020-11-27 北京百度网讯科技有限公司 Method, apparatus, device and storage medium for accessing an applet
CN111930382A (en) * 2020-09-21 2020-11-13 浙江口碑网络技术有限公司 Application page access method, device and equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨正余 ; 王卫平 ; .基于用户访问序列的实时网页推荐研究.计算机***应用.2008,(05),全文. *

Also Published As

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

Similar Documents

Publication Publication Date Title
CN112650575B (en) Resource scheduling method, device and cloud service system
CN112508768B (en) Single-operator multi-model pipeline reasoning method, system, electronic equipment and medium
CN112506619B (en) Job processing method, job processing device, electronic equipment and storage medium
CN114911598A (en) Task scheduling method, device, equipment and storage medium
CN115794262A (en) Task processing method, device, equipment, storage medium and program product
CN113778644B (en) Task processing method, device, equipment and storage medium
CN113225265B (en) Flow control method, device, equipment and computer storage medium
CN113377998A (en) Data loading method and device, electronic equipment and storage medium
CN112506582B (en) Method, device, equipment and medium for processing small program data packet
CN112817428A (en) Task running method and device, mobile terminal and storage medium
CN116204321A (en) Model acquisition and model deployment methods, devices, equipment and media
CN116932147A (en) Streaming job processing method and device, electronic equipment and medium
CN116126719A (en) Interface testing method and device, electronic equipment and storage medium
CN112965836B (en) Service control method, device, electronic equipment and readable storage medium
CN107786382B (en) Interface selection method and device, test console and test system
CN109254928A (en) A kind of method of log processing, system, equipment and computer readable storage medium
CN113905040A (en) File transmission method, device, system, equipment and storage medium
CN113568706A (en) Container adjusting method and device for service, electronic equipment and storage medium
CN111741053A (en) Data pre-downloading method, device, server, terminal and storage medium
CN114428646B (en) Data processing method and device, electronic equipment and storage medium
CN116662276B (en) Data processing method, device, electronic equipment and storage medium
CN117076720B (en) Embedded table access method and device, electronic equipment and storage medium
CN114398233B (en) Load abnormality detection method and device, server and storage medium
CN116010744A (en) Page data processing method and device, electronic equipment and readable storage medium
CN117112162A (en) Data processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant