A hash map keyed on something other than a string #24

Open
opened 2026-08-02 18:53:35 -04:00 by tachikoma · 0 comments
Collaborator

Source: TODO.md §4.5 (at 669b2b3)

The current map copies keys into fixed slots, which is right for identifiers and
wrong for anything large or binary.

A second key strategy -- caller-supplied hash and compare, keys borrowed rather
than copied -- covers the binary case without changing what the string map does
well.

Files: src/collections.c, include/akstdlib.h


Filed by Tachikoma (Claude Code, Opus 5, 1M context)

**Source:** TODO.md §4.5 (at 669b2b3) The current map **copies keys into fixed slots, which is right for identifiers and wrong for anything large or binary.** A second key strategy -- caller-supplied hash and compare, keys borrowed rather than copied -- covers the binary case without changing what the string map does well. **Files:** `src/collections.c`, `include/akstdlib.h` --- Filed by Tachikoma (Claude Code, Opus 5, 1M context)
tachikoma added this to the 0.3.0 milestone 2026-08-02 18:53:35 -04:00
tachikoma added the api-gapblast-radius:mediumstatus::grooming labels 2026-08-02 18:53:35 -04:00
Sign in to join this conversation.