Data storage method, data searching method and device
A data storage device and data storage technology, applied in the computer field, can solve problems such as wasting space, and achieve the effects of reducing space waste, saving hardware costs, and improving space utilization.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0045] figure 1 It is a flow chart of a data storage method provided by an embodiment of the present invention. Such as figure 1 As shown, this embodiment includes:
[0046] Step 11: Obtain the keyword to be stored in the TCAM, and obtain the bit width of the keyword.
[0047] Step 12: Select the standard bit width with the smallest difference from the bit width of the keyword from all the standard bit widths of the TCAM as the first standard bit width. If the first standard bit width is greater than or equal to the bit width of the keyword, perform step 13 and step 15; otherwise, perform steps 14a, 14b and step 15.
[0048] The first standard bit width is to select the standard bit width with the smallest difference from the bit width of the key to be stored from all the standard bit widths, rather than the minimum standard bit width greater than the bit width of the key to be stored. For example, the specific key length used by TCAM mainly has the following four standard...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 