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

Method and device for cleaning redundant codes and related equipment

A redundant code and redundant technology, applied in the information field, can solve the problems of low efficiency and high labor cost of manually checking redundant codes, and achieve the effect of reducing labor costs, reducing omissions, and improving cleaning efficiency

Pending Publication Date: 2022-05-27
PINGAN PUHUI ENTERPRISE MANAGEMENT CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present invention provides a method, device and related equipment for cleaning redundant codes, which can solve the problems of low efficiency and high labor cost of manually checking redundant codes

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
  • Method and device for cleaning redundant codes and related equipment
  • Method and device for cleaning redundant codes and related equipment
  • Method and device for cleaning redundant codes and related equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] Before the project goes live, all files need to be packaged. In the case of redundant code in the files, the space occupied by the packaged files increases, which affects page performance. Therefore, it is necessary to clear the redundant code in the file. In order to solve the problem of high labor cost and low efficiency in the current manual inspection of redundant code, the present application provides a method for cleaning redundant code.

[0034] like figure 1 shown, figure 1 It is a flow chart of a method for cleaning redundant codes provided by the present application, and the method includes the following steps.

[0035] Step S110: Obtain the first function set in the function document.

[0036] In a specific implementation, step S110 may occur in the process of compiling the HTML document, wherein compiling the HTML document is to translate the high-level computer language in the document into machine instruction code. In the case of compiling th...

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 device for cleaning redundant codes and related equipment. The redundant code cleaning method comprises the steps that a first function set in a function document and a second function set in a first code file are obtained, the first function set comprises multiple event functions, the second function set comprises multiple initialization functions, and the multiple initialization functions in the first code file can be called by the event functions in the function document. Then, the first function set and the second function set are matched, and redundant functions in the second function set are obtained; and cleaning the first code file according to the redundancy function to obtain a second code file. According to the method, before the project is officially online and in the document compiling process, the redundancy function is determined through comparison of the first function set and the second function set, cleaning work is conducted on the redundancy function, no extra manual operation is added, the labor cost is reduced, omission of redundancy codes can be reduced, and the cleaning efficiency is improved.

Description

technical field [0001] The present invention relates to the field of information technology, and in particular, to a method, device and related equipment for cleaning redundant codes. Background technique [0002] Due to the rapid update of Internet technology, a project will be iteratively upgraded over a long period of time. In the iterative upgrade process, many functions are abandoned due to optimization, code modification and other operations. The accumulation of abandoned functions will lead to an increase in the amount of code and become redundant. Before the project goes live, all files are packaged to generate compressed files. In the case of redundant code in the file, the compressed file occupies more space and affects page performance. [0003] At present, the removal of redundant code is mostly done outside the file packaging process, through manual inspection. Developers are required to determine whether the code is running in the project. Manual deletion of ...

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): G06F8/41
CPCG06F8/4435
Inventor 周俊
Owner PINGAN PUHUI ENTERPRISE MANAGEMENT CO LTD