what's the normal way to do sparse arrays in rust? Vec<Option<T>>? HashMap<usize, T>?
-
-
Replying to @mountain_ghosts
I don't think there's a "normal" here, both have different performance characteristics. HashMap is overall better for most use cases I think. (OrderMap<usize, T> is yet another option)
2 replies 0 retweets 2 likes -
Replying to @ManishEarth @mountain_ghosts
Really? OrderMap seems like a horrible way to implement option. I didn't realize there were enough impls for it to be "yet another" one
1 reply 0 retweets 1 like -
Replying to @sgrif @mountain_ghosts
What? I said it's an option, not a way to implement option
2 replies 0 retweets 1 like -
Replying to @ManishEarth @mountain_ghosts
So let me tell you about this thing called Dad jokes
1 reply 0 retweets 3 likes -
-
Replying to @ManishEarth @mountain_ghosts
You Californians and your waking up at 7 PM
1 reply 0 retweets 1 like -
Replying to @ManishEarth @mountain_ghosts
Ah that makes much more sense XD
6:20 PM - 31 Dec 2019
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.