You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the .NET only solution is not for .NET Framework, would require backport
span etc.. is already backported, no issue
missing SIMD support in the mono jit employed by Unity
is only the parser, not the mapper
fix: probably have to implement ourselves just for BT' .NET version
never parsing to a string unless a string is actually needed
json is utf8, while .NET strings are utf16, conversion always costs
enums etc.. could be cached to their utf8 byte[] representation
the fastJson parser used in vanilla code and custom mapper by HBS have some deterministic but undefined behavior regarding order of field/property initialization. One would need to replicate the same order as vanilla to avoid NREs or other logic errors.
other ideas:
use newtonsoft json not only for merging but also datamanager loading
newton is much (3-6x) slower than the fastJson+custom mapper solution
msgpack would still be fastest, but that would only work for a cache, as modders cant use notepad to modify data
see cmission/kmission's CustomPrewarm as an example on how to cache
much is hardcoded, could be made generic with some effort in msgpack setup for resolver+formatters (and CC+ME being msgpack compatible); could then be integrated into modtek
The text was updated successfully, but these errors were encountered:
TLDR: Too much effort, therefore postponed
currently BT loads jsons
an improvement could look like
other ideas:
The text was updated successfully, but these errors were encountered: