Incremental reorganization for hash tables
Abstract
Incremental reorganization of hash tables includes a copy phase and a clean phase. In the copy phase, used entries from an alternate hash table (AHT) are copied to a current hash table (CHT). During copying, hash table operations are allowed to access both tables. In the clean phase, entries in the AHT are marked as empty, and hash table operations are allowed to access only the CHT. Once all used entries have been copied from the AHT to the CHT, the clean phase begins. Once all entries in the AHT have been marked as empty during the clean phase, the two tables are switched and the copy phase begins. The copying or cleaning occurs with every hash table operation, a number of hash table operations, or a number based on analysis of recent hash table operations. Copying also occurs by avoiding copying of deleted or expired entries in the AHT. The present invention is suited to use in multithreaded real-time systems.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 11 · Forward citations: 24.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A method for use in a processor for reorganizing a hash table, the method comprising the steps of: copying used entries from a first hash table to a second hash table during a copy phase, wherein during the copy phase one or more of the first and second hash tables are accessed in conjunction with a hash table operation; and cleaning the first hash table during a clean phase, wherein during the clean phase only the second hash table is accessed in conjunction with a hash table operation.
- Claim 2Depends on #1
The method of claim 1 , wherein a used entry is an entry that has not expired and that is not marked as deleted or empty.
- Claim 3Depends on #1
The method of claim 1 , wherein each entry in the first and second hash tables comprises a bucket.
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 24 total)
References Cited — Backward Prior Art (11)
Non-Patent Literature (3)
- B. Carlson, "Packets Challenge Next-Gen Nets," EETimes, downloaded from http://www.eetimes.com/story/OEG20020802S0033 (Aug. 2002).
- Friedman et al., "Hashtables for Embedded and Real-Time Systems," IEEE Real-Time Embedded System Workshop (Dec. 2001).
- Szymanski, T.G., "Hash Table Reorganization," Journal of Algorithms, 6(3), 322-335 (1985).