Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

try the google swiss table (in C) #378

Open
rurban opened this issue Oct 8, 2018 · 0 comments
Open

try the google swiss table (in C) #378

rurban opened this issue Oct 8, 2018 · 0 comments
Assignees

Comments

@rurban
Copy link
Member

rurban commented Oct 8, 2018

Either the simple 16 ptr version (on 64bit), but probably go for the other cache-aware 7 ptr variant described in the talk, with the highest metadata bit to mark a full table. https://youtu.be/ncHmEUmJZf4?t=2845

See https://abseil.io/blog/20180927-swisstables
and for the C++ code https://github.com/abseil/abseil-cpp/blob/master/absl/container/internal/raw_hash_set.h.
I haven't found a C version for strings yet, but it should be much shorter, without all the C++ quirks. possibly inline short (<8 byte) strings.
They don't care for 32bit, but we do. Shouldn't be too hard to support both.

@rurban rurban changed the title try google the swiss table (in C) try the google swiss table (in C) Oct 8, 2018
@rurban rurban self-assigned this Oct 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant