Event JSON
{
"id": "d45eb54f1aebd9945ac8cdf1f85d6677168cfc3107cdf6a616f14b68744dcc37",
"pubkey": "979383f8767c5d795fcad86f82dc7b38b384c1a473710c433014dc2c0fb0e359",
"created_at": 1693992551,
"kind": 1,
"tags": [
[
"p",
"db7a7776755231e99b086c2d60d9cee6bc7ee56774724cb1addb7522eae374bc",
"wss://relay.mostr.pub"
],
[
"p",
"837c276240fd3bdbfc0db1091580750aa3c1d5212801549bd41af93c33cecdfa",
"wss://relay.mostr.pub"
],
[
"e",
"e8d24adce16804b49a43ae8597ba5f3637b874ce9c71236dbc8d83d92ffc9fa1",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://fosstodon.org/users/mo8it/statuses/111017495852405115",
"activitypub"
]
],
"content": "nostr:npub1mda8wan42gc7nxcgdskkpkwwu678aet8w3eyevddmd6j96hrwj7qxwux44 Either use `with_capacity` and see if it works:\n\nhttps://doc.rust-lang.org/std/collections/struct.HashMap.html#method.with_capacity\n\nOr use `new` and then `try_reserve`:\n\nhttps://doc.rust-lang.org/std/collections/struct.HashMap.html#method.try_reserve\n\nI would always recommend using `with_capacity` when you know how many insertions you will have. It will cause only one allocation instead of reallocating multiple times while the HashMap grows.\n\nNow, if you see `with_capacity` failing or you suspect that you need too much memory, use `try_reserve` to just get a `Result` from the allocator.",
"sig": "ece0236667bd724409c1da29ebc3dcf71a926a8285cf71184b0faec3ca632aa12a6453e17d84d7e2d70ca19ffa3de76a500c4cb2804d778f0059e168e5c6acc8"
}