string interning? i don't know what this means. you mean the pubkey index? that's in there. yes, the pubkeys are encoded as 5 byte long pointers to the pubkey index. IIRC. i remember doing something with this. there is actually a table in there that links pubkey/event/kind together that theoretically should enable index free adjacency (meaning it only iterates one table to find the event or pubkey you seek).
haven't implemented it in many places yet but tag queries for e and p tags use it. it's potentially able to add a graph query language to walk that table
Login to reply
Replies (2)
i may be misremembering. just mustering the electric gnome to explain what it does, as my memory may be foggy, or maybe i got lied to about it. but i'm sure i did it
It just means that there is only one place in memory for all strings (or byte arrays if you convert them). So, all if,pubkey,p,e tags with the same value just point to the same address of the string/bytearray. It's like a huge KV db just for each string inside every nostr event.