breakfast
breakfast
CC#
Created by breakfast on 9/18/2023 in #help
❔ [Unity-ish/Newtonsoft] Efficient ways to deserialize a large amount of json data.
heheh I'll be 👀. plus it'd be really cool to get involved in the open-source community.
35 replies
CC#
Created by breakfast on 9/18/2023 in #help
❔ [Unity-ish/Newtonsoft] Efficient ways to deserialize a large amount of json data.
Yeah, I need to rope it into the spaghetti I've created up there but figure I'd give it a shot. And once again, big ups to everyone who's helped in this thread. Would like to explore other engines and custom stuff in the future, but currently I've gotta support my leads 🙂
35 replies
CC#
Created by breakfast on 9/18/2023 in #help
❔ [Unity-ish/Newtonsoft] Efficient ways to deserialize a large amount of json data.
Mhm
35 replies
CC#
Created by breakfast on 9/18/2023 in #help
❔ [Unity-ish/Newtonsoft] Efficient ways to deserialize a large amount of json data.
I am also finding that using Unity's built in conversion utility is wildly faster than Newtonsoft. No shade to the creators.
35 replies
CC#
Created by breakfast on 9/18/2023 in #help
❔ [Unity-ish/Newtonsoft] Efficient ways to deserialize a large amount of json data.
Unfortunately we're kind of bound right now with something already out ~version 2021. Game's already released so any major updates to get the new stuff would be a little more lift.
35 replies
CC#
Created by breakfast on 9/18/2023 in #help
❔ [Unity-ish/Newtonsoft] Efficient ways to deserialize a large amount of json data.
Hahaha, indeed
35 replies
CC#
Created by breakfast on 9/18/2023 in #help
❔ [Unity-ish/Newtonsoft] Efficient ways to deserialize a large amount of json data.
Thanks again, I probably need to just research some more and read up on the docs of all the stuff I'm using
35 replies
CC#
Created by breakfast on 9/18/2023 in #help
❔ [Unity-ish/Newtonsoft] Efficient ways to deserialize a large amount of json data.
Simply wrapping the serialization part of the code or the function itself still makes the cpu chug pretty hard (with or without the delay)
await UniTask.SwitchToThreadPool();
// Run deserialization
or
// await parsing function
await UniTask.SwitchToMainThread();
await UniTask.SwitchToThreadPool();
// Run deserialization
or
// await parsing function
await UniTask.SwitchToMainThread();
35 replies
CC#
Created by breakfast on 9/18/2023 in #help
❔ [Unity-ish/Newtonsoft] Efficient ways to deserialize a large amount of json data.
Regardless, appreciate the quick response. Will try UniTask again and see what I find.
35 replies
CC#
Created by breakfast on 9/18/2023 in #help
❔ [Unity-ish/Newtonsoft] Efficient ways to deserialize a large amount of json data.
🤔 need to recode some stuff I nuked. And apologies for thinkin I was bound there. I've been on stack overflow firehosing my brain with things I just kinda take for granted.
35 replies
CC#
Created by breakfast on 9/18/2023 in #help
❔ [Unity-ish/Newtonsoft] Efficient ways to deserialize a large amount of json data.
Funny enough, I'll incur the same hit with UniTask as the newtonsoft stuff is still going to be main thread bound.
35 replies
CC#
Created by breakfast on 9/18/2023 in #help
❔ [Unity-ish/Newtonsoft] Efficient ways to deserialize a large amount of json data.
Indeed. I am aware tasks != ez-threading, suppose I'm using the pattern and testing other approaches to more match what I'm seeing other folks do. In this case, I was considering options on how to reduce the huge burden on the main thread by spreading the deserializtion out over time. And even then I don't know if that's a production solution, but feels like it's a step in the right direction?
35 replies
CC#
Created by breakfast on 8/1/2023 in #help
Is Regex overkill for ~2000 strings and a few conditions?
Cool, thanks you two.
4 replies
CC#
Created by breakfast on 3/8/2023 in #help
❔ Practical use for bitwise operators, specifically |= in context.
Thank you so much. I know this is a rather simple one. But it looked a bit strange to me.
8 replies
CC#
Created by breakfast on 3/8/2023 in #help
❔ Practical use for bitwise operators, specifically |= in context.
This actually looks to be boolean overriding? May delete after some tests here
8 replies