Very slow performance of Lst and Map #979
Unanswered
NeutraChikara
asked this question in
Q&A
Replies: 1 comment
-
Obviously In the meantime, you could try There are some benchmarks for comparing like-for-like (to Microsoft's ImmutableCollections library) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Avid user of LanguageExt here. I have run into some problems with the Lst and Map structs being very slow.
I can't really figure out what's causing it (a simple equality comparison between the same two lists of strings are fast both for the built in list and LanguageExt Lst).
But I've written two tests to demonstrate the Lst slowness when using Distinct, which is how I discovered the issue.
The tests yields this result
I have done the same thing for Map
Which yields this result
This prevents me from using these (otherwise awesome) structs in some cases. Especially Map hurts to use, since looking up a value is so slow, which is what you tend to use Map for (or at least that's what I use it for ;) ).
Beta Was this translation helpful? Give feedback.
All reactions