Tekromancer on Nostr: Today I verified that the first 6 bytes of their SHA-256 hash is enough to uniquely ...
Today I verified that the first 6 bytes of their SHA-256 hash is enough to uniquely identify the ~8M data points I want to test for through a new API service. That means the total data I need to ship isn’t 2.5GB but only 48MB, and I can (and have!) bake that right into the Rust binary so that it doesn’t need an external database at all.
Also means the API requests take about .1ms (!) to respond to.
Published at
2024-08-19 05:05:50Event JSON
{
"id": "ab787e63971ffeb95ed18bb2a3390c09e5d1b541e0fce852cfb5a695275b4199",
"pubkey": "8e62fbcc6147b475c3ee74999ea7bd16176f22e92b3aa86556a91033e24aab33",
"created_at": 1724043950,
"kind": 1,
"tags": [
[
"proxy",
"https://freeradical.zone/users/tek/statuses/112986944348760564",
"activitypub"
]
],
"content": "Today I verified that the first 6 bytes of their SHA-256 hash is enough to uniquely identify the ~8M data points I want to test for through a new API service. That means the total data I need to ship isn’t 2.5GB but only 48MB, and I can (and have!) bake that right into the Rust binary so that it doesn’t need an external database at all.\n\nAlso means the API requests take about .1ms (!) to respond to.",
"sig": "d23ac103390851c68cdeb0eae035d714568b5e893c6d154b121ecac135bcd64c19deb66285b34374e8ff1839e047d9bae0f973b1154fdabddddccbeeee5639a2"
}