Joe on Nostr: A very hot component of my #rustlang program is a dictionary lookup, answering the ...
A very hot component of my #rustlang program is a dictionary lookup, answering the question is this a word. It can test about 3.25 million valid words against its dictionary in the time it takes you to blink your eyes. Invalid words are generally faster.
~ 30 ns for a lookup
Published at
2024-04-10 16:13:28Event JSON
{
"id": "90a5351e304e0e3c2c3714e84cd48dccf597b9990649576ba39ceaebbc725ebb",
"pubkey": "7bdb00028e0701621891b93164da1a8c5ae2638b2b5a0b1c24bbf86126e32e7c",
"created_at": 1712765608,
"kind": 1,
"tags": [
[
"t",
"rustlang"
],
[
"proxy",
"https://fosstodon.org/users/Joe_0237/statuses/112247806894030497",
"activitypub"
]
],
"content": "A very hot component of my #rustlang program is a dictionary lookup, answering the question is this a word. It can test about 3.25 million valid words against its dictionary in the time it takes you to blink your eyes. Invalid words are generally faster.\n~ 30 ns for a lookup",
"sig": "7264743975b791f5a89d4d9447798c0551dd4764cb606c7ab38289e493c06aa0597347e305581455aae1f461b263a11ab028dae0a08b0d383202b7c33974581c"
}