Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and device for obtaining common modules

A technology of common modules and target modules, applied in the computer field, can solve problems such as many irrelevant functional modules and no solutions are proposed, and achieve the effect of reducing the number of citations

Active Publication Date: 2019-06-21
GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] Aiming at the problem that there are many irrelevant functional modules loaded by opening the page in the prior art, no effective solution has been proposed yet

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and device for obtaining common modules
  • A method and device for obtaining common modules
  • A method and device for obtaining common modules

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0030] According to an embodiment of the present invention, an embodiment of a method for obtaining a public module is provided. It should be noted that the steps shown in the flow chart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and , although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.

[0031] image 3 is a flowchart of a method for obtaining public modules according to an embodiment of the present invention, such as image 3 As shown, the method includes the following steps:

[0032] Step S31, acquiring the number of page visits within a preset time and the jump relationship among multiple pages.

[0033] Specifically, the above-mentioned page may be a specified page, or may be all pages accessed within a preset time. There are two ways to access a page, the first is to be accesse...

Embodiment 2

[0071] According to an embodiment of the present invention, an embodiment of an apparatus for obtaining a public module is provided, Figure 5 is a schematic diagram of a device for acquiring public modules according to an embodiment of the present invention, such as Figure 5 As shown, the device includes:

[0072] The obtaining module 50 is configured to obtain the number of times a page is visited within a preset time and the jump relationship among multiple pages.

[0073] The determining module 52 is configured to determine the weight of the multiplexing module according to the number of page visits and the jump relationship, wherein the multiplexing module is used to represent a functional module that is depended on by multiple pages.

[0074] The selection module 54 is configured to select a target module from the multiplexing modules according to the weights of the multiplexing modules, wherein the target modules are used to form a common module through merging.

[0...

Embodiment 3

[0083] According to an embodiment of the present invention, a storage medium is provided. The storage medium includes a stored program. When the program is running, the device where the storage medium is located is controlled to perform the following steps: obtain the number of times a page is accessed within a preset time and the number of pages The jump relationship between; according to the number of page visits and the jump relationship, determine the weight of the reuse module, where the reuse module is used to represent the functional modules that are dependent on multiple pages; according to the weight of the reuse module, from A target module is selected from the multiplexed modules, wherein the target module is used to form a common module through merging.

[0084] Further, when the program is running, controlling the device where the storage medium is located also performs other steps in Embodiment 1, which will not be repeated here.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and a device for acquiring a public module. The method comprises the following steps: the number of times that a page is accessed within preset time and a skip relation among a plurality of pages are acquired; According to the number of times that the page is accessed and the skip relation, the weight of a multiplexing module is determined, and the multiplexing module is used for representing a function module which is depended on by a plurality of pages; And according to the weight of the multiplexing module, a target module is selected from the multiplexing module, and the target module is used for forming a common module through combination. The technical problem that in the prior art, many unrelated function modules for page opening and loading exist issolved.

Description

technical field [0001] The present invention relates to the field of computers, in particular to a method and device for acquiring public modules. Background technique [0002] A functional module is a virtual module that encapsulates the code. Each page displayed when browsing the web or using an application has its dependent functional modules. In current front-end multi-page applications, there are multiple pages In the case of using the same functional module, figure 1 It is a schematic diagram of the dependency relationship between pages and modules, such as figure 1 As shown, page A depends on module a and module b, page B depends on module b and module c, and page c depends on page d and page a. In order to improve the loading speed of the page, multiple modules that the page depends on can be packaged into a common module, so that when the page is opened, the common module is loaded instead of loading each module separately. [0003] But if you simply package mult...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/957G06F9/445
Inventor 李春
Owner GUANGZHOU SHIYUAN ELECTRONICS CO LTD