Answer Overflow Logo
Change Theme
Search Answer Overflow
GitHub
Add Your Server
Login
Home
Popular
Topics
Gaming
Programming
Pedro Gil Mora
Explore posts from servers
C
C#
R
Railway
Posts
Comments
C
C#
•
Created by Pedro Gil Mora on 10/7/2024 in
#help
Dictionary vs switch in source generated code
There's a difference of course. My test it's about which one reflect fastest lookup rather than measuring the final method to be called inside every case
52 replies
C
C#
•
Created by Pedro Gil Mora on 10/7/2024 in
#help
Dictionary vs switch in source generated code
yep
52 replies
C
C#
•
Created by Pedro Gil Mora on 10/7/2024 in
#help
Dictionary vs switch in source generated code
I tried frozen, normal, immutable.. none of them were as fast as dictionary
52 replies
C
C#
•
Created by Pedro Gil Mora on 10/7/2024 in
#help
Dictionary vs switch in source generated code
52 replies
C
C#
•
Created by Pedro Gil Mora on 10/7/2024 in
#help
Dictionary vs switch in source generated code
52 replies
C
C#
•
Created by Pedro Gil Mora on 10/7/2024 in
#help
Dictionary vs switch in source generated code
that can be enhanced if expression returns a value, but for void, it's pretty much like this
52 replies
C
C#
•
Created by Pedro Gil Mora on 10/7/2024 in
#help
Dictionary vs switch in source generated code
52 replies
C
C#
•
Created by Pedro Gil Mora on 10/7/2024 in
#help
Dictionary vs switch in source generated code
52 replies
C
C#
•
Created by Pedro Gil Mora on 10/7/2024 in
#help
Dictionary vs switch in source generated code
the variable
52 replies
C
C#
•
Created by Pedro Gil Mora on 10/7/2024 in
#help
Dictionary vs switch in source generated code
still though it should be faster than dictionary, I mean switch expression
52 replies
C
C#
•
Created by Pedro Gil Mora on 10/7/2024 in
#help
Dictionary vs switch in source generated code
this time I want to remove all possible overheads
52 replies
C
C#
•
Created by Pedro Gil Mora on 10/7/2024 in
#help
Dictionary vs switch in source generated code
I know, but it introduces some overheads in the lowered version some times
52 replies
C
C#
•
Created by Pedro Gil Mora on 10/7/2024 in
#help
Dictionary vs switch in source generated code
of course I use them, a lot
52 replies
C
C#
•
Created by Pedro Gil Mora on 10/7/2024 in
#help
Dictionary vs switch in source generated code
I mean for this case
52 replies
C
C#
•
Created by Pedro Gil Mora on 10/7/2024 in
#help
Dictionary vs switch in source generated code
I need to execute void methods
52 replies
C
C#
•
Created by Pedro Gil Mora on 10/7/2024 in
#help
Dictionary vs switch in source generated code
Oh I understand, not switch statement. I dont like them that much (switch expressions)
52 replies
C
C#
•
Created by Pedro Gil Mora on 10/7/2024 in
#help
Dictionary vs switch in source generated code
explain please
52 replies
C
C#
•
Created by Pedro Gil Mora on 10/7/2024 in
#help
Dictionary vs switch in source generated code
I'll try providing random values
52 replies
C
C#
•
Created by Pedro Gil Mora on 10/7/2024 in
#help
Dictionary vs switch in source generated code
52 replies