Pattern file loading method and system
A file loading and file technology, applied in the field of data structure, can solve problems such as time-consuming, and achieve the effect of improving the parsing speed, saving memory, and occupying less memory
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment I
[0077] like Figure 3-6 , a Pattern file loading method, comprising: introducing a redis memory database, saving the Pattern file with a data structure combined by a hash table; when loading, loading the Pattern through the data structure combined by the key and hash file into the memory; by N threads, the Pattern file is loaded into the FPGA from the memory; N=1, 2, 3...; the data structure of the hash combination includes: building the first mapping relationship through the key1 of hash1; A second mapping relationship is constructed through key2 and value2 of hash2.
[0078] like Figure 5 , the "load the Pattern file into the memory through the data structure of the hash combination" includes: when loading, read the Pattern file line by line, and piece together the hash1 with the wft, wfc, and seq of each vector key1; only key1 is reserved in the structure of hash1 to ensure the uniqueness of data, and value1 is not required; the index obtained by key1 is stored in value2...
specific Embodiment II
[0097] Aiming at the time-consuming problem of the update method in the prior art, such as Figure 8 , the Pattern file loading method of the present invention further includes: a step of updating the Pattern file with a data structure composed of a key and a hash table. Since the updated parameter is generally the line number, there is a hash function in the hash table, and the value can be obtained through the key (line number), which specifically includes: according to the updated parameter, such as the line num of the vector, find value2 in hash2, that is index; through the index, the corresponding key1 is obtained in the hash1; at this time, key1 is composed of wft, wfc, and seq; VCTDATA is obtained by combining wft, wfc, and seq, and can be obtained through software customization; According to the updated parameters, that is, the introduced new wft, wfc, and seq combined values, update the value of the key1; according to the updated VCTDATA value, find whether there is t...
specific Embodiment III
[0099] like Figure 9 , a Pattern file loading system, comprising: a data module 100, a PE unit 200 and an FPGA module 300; the PE unit 200 exchanges data with the data module 100 for loading the Pattern file; the FPGA module 300 consists of M Said PE unit is used to load said Pattern file into said FPGA module; M=1, 2, 3...; preferably, M is 4.
[0100] The data module 100 includes: a hash1 unit, a hash2 unit, a key1 module, a key2 module and a value2 module; the hash2 unit is set in parallel with the hash1 unit; the key1 module is set corresponding to the hash1 unit, and is used to form the first key Value pair; the key2 module is set correspondingly to the hash2 unit; the value2 module is set correspondingly to the key2 unit; the hash2 module forms a second key-value pair with the key2 module and the value2 module, see image 3 .
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com