Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Code efficiency inspection method and code efficiency inspection system

A technology of code inspection and inspection method, applied in the field of code inspection

Active Publication Date: 2015-04-29
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Based on this, it is necessary to provide a code efficiency inspection method and system for the technical problem that the existing technology fails to check whether there is a place in the code that affects efficiency

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
  • Code efficiency inspection method and code efficiency inspection system
  • Code efficiency inspection method and code efficiency inspection system
  • Code efficiency inspection method and code efficiency inspection system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] The present invention will be described in further detail below in conjunction with the accompanying drawings and specific embodiments.

[0021] Such as figure 1 Described is a working flow chart of a code efficiency checking method of the present invention, including:

[0022] Step S101, comprising: obtaining an unchecked code file as a current code file, the code file includes at least one code, taking the first code of the code file as the current code, and performing step S102;

[0023] Step S102, including: checking the current code: if the current code is the start mark of the cycle paragraph, add the cycle mark to the preset queue, and execute step S103; if the current code meets the preset efficiency rule, and the queue If there is also a cycle mark stored in the code, alarm recording is performed, and step S103 is performed; if the current code is the end mark of a cycle paragraph, then the cycle mark is removed from the queue, and step S103 is performed;

[...

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 code efficiency inspection method and code efficiency inspection system. The method includes the following steps: an uninspected code file is obtained as a current code file, and a first code of the code file is adopted as a current code; the current code is inspected: if the current code is an initial identifier of a loop paragraph, then a loop identifier is added into a preset queue; if the current code meets a preset efficiency rule and the loop identifier is still stored in the queue, then alarm logging is carried out; if the current code is an ending identifier of the loop paragraph, then the loop identifier is removed from the queue; if the code file also has a next code, then the next code is adopted as a current code, or else the current code file is set as an inspected code file; if an uninspected code file exists, then the code file is obtained, or else the method is completed. The method can find out codes severely affecting efficiency by scanning codes.

Description

technical field [0001] The invention relates to the related technical field of code checking, in particular to a code efficiency checking method and system. Background technique [0002] Existing large-scale e-commerce platforms have a very large amount of concurrency, so they have high requirements for code quality and efficiency. Code inspection tools can be used to check the code, such as: PMD, checkstyle, jalopy, etc. Their common features are as follows to check the following conditions of the code, including: code specification, empty catch block, unused parameters, empty if statement, repeated import statement, unused private method, Import statement, volume size, blank , modifier. [0003] However, the existing code checking tools only strictly check the code and grammar, but fail to check the efficiency of the biased code, that is, the existing technology fails to check whether there is any place in the code that affects the efficiency. Contents of the invention...

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
IPC IPC(8): G06F11/36
Inventor 李清森
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products