Feature rule matching library updating method, device, storage medium and electronic equipment

An electronic device and update method technology, applied in the field of data communication, can solve problems such as long compilation time and inability to guarantee the real-time performance of feature rules, and achieve the effects of fast compilation speed, reduced compilation time, and improved real-time performance

Active Publication Date: 2020-01-21
RUN TECH CO LTD BEIJING
View PDF4 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] During the use of the hyperscan library, feature rules need to be pre-compiled to perform feature matching. Even if only a small amount of feature changes, the entire feature library needs to be recompiled. As the size of the feature increases, the time required for the compilation step increases exponentially. , when the feature library reaches the million level, the compilation time is very long, and the real-time performance of feature rules cannot be guaranteed

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
  • Feature rule matching library updating method, device, storage medium and electronic equipment
  • Feature rule matching library updating method, device, storage medium and electronic equipment
  • Feature rule matching library updating method, device, storage medium and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0029] image 3 It is a schematic flowchart of a method for updating a feature rule matching library provided by Embodiment 1 of the present invention. This embodiment is applicable to the case of updating a feature rule matching library. The update device can be implemented by means of software and / or hardware, and can be integrated into electronic devices such as computers or electronic devices. Specifically include the following steps:

[0030] S110. Receive a feature rule processing instruction, where the feature rule processing instruction includes a feature rule processing type and feature rule information.

[0031] S120. Determine a target sub-base according to the feature rule processing instruction, and update the target sub-base based on the feature rule processing type and the feature rule information.

[0032] S130. According to a preset time interval, determine a target sub-library to be updated within the preset time interval.

[0033] S140. Compile the update...

Embodiment 2

[0052] Figure 5 It is a schematic structural diagram of an update device for a feature rule matching library provided in Embodiment 2 of the present invention. The device includes a plurality of independent sub-libraries with preset capacities, and the sub-libraries are used to store feature rule information; wherein, the Said devices include:

[0053] A processing instruction receiving module 210, configured to receive a feature rule processing instruction, wherein the feature rule processing instruction includes feature rule processing type and feature rule information;

[0054] A target sub-library updating module 220, configured to determine a target sub-library according to the feature rule processing instruction, and update the target sub-library based on the feature rule processing type and the feature rule information;

[0055] The update sub-library determining module 230 is configured to determine the target sub-library to be updated within the preset time interval...

Embodiment 3

[0082] Figure 6 It is a schematic structural diagram of an electronic device provided by Embodiment 3 of the present invention. Figure 6 A block diagram of an electronic device 412 suitable for implementing embodiments of the invention is shown. Figure 6 The electronic device 412 shown is only an example, and should not limit the functions and scope of use of this embodiment of the present invention. Device 412 is typically an electronic device that undertakes image classification functions.

[0083] Such as Figure 6 As shown, electronic device 412 takes the form of a general-purpose computing device. Components of the electronic device 412 may include, but are not limited to: one or more processors 416, a storage device 428, and a bus 418 connecting different system components (including the storage device 428 and the processor 416).

[0084] Bus 418 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bu...

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 feature rule matching library updating method, a feature rule matching library updating device, a storage medium and electronic equipment. The method comprises the followingsteps: receiving a feature rule processing instruction which comprises a feature rule processing type and feature rule information; determining a target sub-library according to the feature rule processing instruction, and updating the target sub-library based on the feature rule processing type and the feature rule information; determining a target sub-library updated in a preset time interval according to the preset time interval; and compiling the updated target sub-library, and updating a feature rule matching library according to the compiled feature rule matching sub-library. The space for storing the feature rules is divided into the multiple independent sub-libraries, the sub-libraries are small in capacity and high in compiling speed, the sub-libraries are independent of one another and can be compiled in parallel, compiling time is shortened, compiling efficiency of the feature rule matching library is improved, and compiling real-time performance of the feature rule matchinglibrary is improved.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of data communication, and in particular to an update method, device, storage medium and electronic equipment of a feature rule matching library. Background technique [0002] Hyperscan is a high-performance regular expression matching library from Intel. The use process of the Hyperscan library is as follows: 1. Call the compiler to compile the feature rules and generate the corresponding database. The generated database is serialized and stored in memory for extraction at runtime; 2. Call the database generated based on compilation The matching engine inside Hyperscan does pattern matching. see figure 1 , figure 1 It is a schematic diagram of compiling the Hyperscan library in the prior art. [0003] During the use of the hyperscan library, feature rules need to be pre-compiled to perform feature matching. Even if only a small amount of feature changes, the entire feature libr...

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/23G06F8/41
CPCG06F16/23G06F8/41
Inventor 田慧萌谢永恒樊景亮龙大鹏冯建业
Owner RUN TECH CO LTD BEIJING
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products