MechWarrior99
MechWarrior99
CC#
Created by MechWarrior99 on 12/24/2024 in #help
High performances way to access members?
That makes sense, thanks
14 replies
CC#
Created by MechWarrior99 on 12/24/2024 in #help
High performances way to access members?
Oh that makes sense. Yeah my thinking was to only process objects with an attribute. Good thinking to look at how System.Text.Json does it. Do you know if it makes a difference if all the generated code is in a single class/method vs a class-per type? No big deal if not, I can just do a bit ore reading on it, but figured it was worth asking.
14 replies
CC#
Created by MechWarrior99 on 12/24/2024 in #help
High performances way to access members?
Well that makes me feel better, but it would still be a lot. Was hoping there might be a nicer way than to 'brute force' generate handlers for every object.
14 replies
CC#
Created by MechWarrior99 on 12/24/2024 in #help
High performances way to access members?
Is it loc that make the difference or number of classes/structs?
14 replies
CC#
Created by MechWarrior99 on 12/24/2024 in #help
High performances way to access members?
It would be 100s of extra classes. Or alternatively, assuming I understand the limitations of MakeGeneric with NativeAOT, I could have a big class with a method or something that calls/uses the generics I need for each class?
14 replies
CC#
Created by MechWarrior99 on 12/24/2024 in #help
High performances way to access members?
Yeah that is what I would normally do as well.
14 replies
CC#
Created by MechWarrior99 on 8/14/2024 in #help
Arrange points in circle with a Sweep parameter
Ahh you're right. That's unfortunate, oh well. Thank you for explaining how I was thinking about it wrong. Guess I will just pick something.
8 replies
CC#
Created by MechWarrior99 on 7/23/2024 in #help
✅ Faster & thread safe random number generator?
I'm using .NET 8.0
52 replies
CC#
Created by MechWarrior99 on 7/23/2024 in #help
✅ Faster & thread safe random number generator?
Huh interesting, thanks for the link
52 replies
CC#
Created by MechWarrior99 on 7/23/2024 in #help
✅ Faster & thread safe random number generator?
Yeah, guess that is true. So... not that surprising haha
52 replies
CC#
Created by MechWarrior99 on 7/23/2024 in #help
✅ Faster & thread safe random number generator?
Oh thanks for the link. I didn't realize that is literally what it is called. Or that it seems pretty easy to implement. I might give that a go and see how it performs. Still a bit surprised there isn't more libraries for C# that deal with random numbers and randomness (just in general)
52 replies
CC#
Created by MechWarrior99 on 7/23/2024 in #help
✅ Faster & thread safe random number generator?
I remember seeing something about using xor-shift to get random numbers, but couldn't find a lot on it. 🤔
52 replies