Sorry for asking basic stuff but i did tried both forum search and google search but didnt find anyting that answers these questions, so i really appreciate someone who has experienced with this can answer these.
If im not mistaken, we can now have NativeList,
So my question is;
Can this approach works with JobSystem and BurstCompiler where ill have a NativeList of “english words” to perform string comparisons operations ?
Keep in mind that (according to the Unity Collections package changelog) NativeString is now deprecated in favor of FixedString. Currently you should use the FixedString variant that supplies you with enough character capacity for your needs.
Here’s a comment with some guidance from NativeString.gen.cs but probably applies to FixedString* too:
According to this, the longest “real” word (not a chemical name and not invented for the purpose of being long) is 30 letters: Longest word in English - Wikipedia Which just squeaks into a FixedString32.
There should be a Generic FixedString which takes space based on the word length as putting FixedString32 means i;ll be forced to save all the words 32 as its a NativeArray. Or is there a better way?