logoalt Hacker News

malisper • yesterday at 8:51 PM • 1 reply • view on HN

From the link

> Keys and values are fixed-size

so not quite what I'm looking for


Replies

andsoitis • yesterday at 9:08 PM

You can store the strings separately and have the dictionary hold references to them.

Conceptually:

dictionary<i64, StringReference>

             |

             +----> "hello"

             +----> "a much longer string"

             +----> "x"
➕ show 1 reply