The Mist
The Mist
Explore posts from servers
CC#
Created by The Mist on 4/27/2024 in #help
✅ :white_check_mark: Dictionary<int, ...> lookup time seems a bit too slow
Yeah, that's fair
17 replies
CC#
Created by The Mist on 4/27/2024 in #help
✅ :white_check_mark: Dictionary<int, ...> lookup time seems a bit too slow
Thanks guys! I don't get to use line-by-line profilers too often, so maybe I'm just overestimating how well it accounts for its own overhead in the benchmark results I've gotten the performance to an acceptable threshold for now by optimizing other things, if it falls under the threshold again I'll try using BenchmarkDotNet to see if there is really some issue with the dictionary/method or if it was just the overhead after all
17 replies
CC#
Created by The Mist on 4/27/2024 in #help
✅ :white_check_mark: Dictionary<int, ...> lookup time seems a bit too slow
What could be the reason for it to be so slow? Maybe I should just chalk this up to line-by-line profiling miscalculations for now
17 replies
CC#
Created by The Mist on 4/27/2024 in #help
✅ :white_check_mark: Dictionary<int, ...> lookup time seems a bit too slow
No description
17 replies
CC#
Created by The Mist on 4/1/2024 in #help
Difference algorithm that Git uses
Didn't get a notif for this - thanks for the responses!
10 replies
CC#
Created by The Mist on 10/1/2022 in #help
ReferenceEquals?
That's another can of worms So what's the procedure here once a post has been solved, do I close it or do I leave it as it is?
43 replies
CC#
Created by The Mist on 10/1/2022 in #help
ReferenceEquals?
In any case
43 replies
CC#
Created by The Mist on 10/1/2022 in #help
ReferenceEquals?
I'll place a few breakpoints to hopefully figure out what it's doing under the hood
43 replies
CC#
Created by The Mist on 10/1/2022 in #help
ReferenceEquals?
text.textInfo.meshInfo[0].vertices this one is an actual array within the meshInfo struct
43 replies
CC#
Created by The Mist on 10/1/2022 in #help
ReferenceEquals?
Not according to the docstring though
43 replies
CC#
Created by The Mist on 10/1/2022 in #help
ReferenceEquals?
Maybe one of these doesn't return a copy in some cases
43 replies
CC#
Created by The Mist on 10/1/2022 in #help
ReferenceEquals?
And I'm not really sure if that's true, if accessing the property always returns a copy - what's the point
43 replies
CC#
Created by The Mist on 10/1/2022 in #help
ReferenceEquals?
43 replies
CC#
Created by The Mist on 10/1/2022 in #help
ReferenceEquals?
43 replies
CC#
Created by The Mist on 10/1/2022 in #help
ReferenceEquals?
I'm still in the process of trying to figure out what the difference between text.textInfo.meshInfo[0].mesh.vertices, text.mesh.vertices and text.textInfo.meshInfo[0].vertices is
43 replies
CC#
Created by The Mist on 10/1/2022 in #help
ReferenceEquals?
Yeah, the TMPro documentation is honestly kinda useless
43 replies
CC#
Created by The Mist on 10/1/2022 in #help
ReferenceEquals?
Ah, yeah, it's a getter that returns a copy apparently, had to view the actual implementation to see that Idk why the IDE didn't show the doctsring, and why it's nowhere in the docs (nowhere I could find anyway)
43 replies
CC#
Created by The Mist on 10/1/2022 in #help
ReferenceEquals?
43 replies
CC#
Created by The Mist on 10/1/2022 in #help
ReferenceEquals?
Aren't arrays reference types?
43 replies
CC#
Created by The Mist on 10/1/2022 in #help
ReferenceEquals?
It's an array of value types though
43 replies