nostr:npub1qnnjpjm3gctvgewlz0pc8hk8tzu0gewskh4fewgmuvjm9kw2l4usagw7ad
foo* recptr = map_alloc(sizeof(foo) + strlen(rec1.name) + strlen(rec1.phone) + 2);
recptr->name = (char *)(recptr+1);
strcpy(recptr->name, rec1.name);
recptr->phone = recptr->name + strlen(recptr->name)+1;
strcpy(recptr->phone, rec1.phone);
So recptr lives inside the fixedmap address space, and contains all of rec1's data in one contiguous chunk of memory. Then the record can be used directly from the map, with no deser cost.