Not only did I see an improvement in performance after switching to IDictionary from Map (which is explored in a question from over 10 years ago), I got even more speed when I went from this type:
type MyCollection =
static member Collection = [
(1, "one")
(2, "two")
...
] |> dict
static member Get id = MyCollection.Collection[id]
…to a type like this:
type MyCollection() =
static let collection = [
(1, "one")
(2, "two")
...
] |> dict
static member Get id = collection[id]
Why does performance improve when using static let over static member?