File: index_computation

package info (click to toggle)
parallel-hashmap 1.4.1%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,872 kB
  • sloc: cpp: 20,492; ansic: 1,114; python: 492; makefile: 85; haskell: 56; perl: 43; sh: 23
file content (29 lines) | stat: -rw-r--r-- 1,494 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29



        +----------------+
        |"(keyi, valuei)"|
        +------+---------+
                |
                |  hasher(keyi)                   "Parallel Hash Map"
                v                                 "(with 8 submaps)"
      +--------+-------------+                   +----------------+
      | h=0x7d84ea13707f4657 |                   |  submap0       |
      +---------+------------+                   +----------------+
                |                                |  submap1       |
                | "(h ^ (h >> 3)) & 0x7"         +----------------+
                v                                |  submap2       |
           +----+----+                           +----------------+
           |"idx = 5"|                           |  submap3       |
           +----+----+                           +----------------+
                |                                |  submap4       |
                |                                +----------------+
                +------------------------------->|  submap5       |
                                                 +----------------+
                                                 |  submap6       |
                                                 +----------------+
                                                 |  submap7       |
                                                 +----------------+
      
       "parallel_hash_map with 8 submaps, each submap is an absl::flat_hash_map"