Can we use regex in the programmable blocks somehow? Serialization without handcrafting a JSON parser?
While string.IndexOf() and string.Substring() can do a lot, my life would be much easier if I could actually use the regex that C# has. I'm setting up my own JSON serialization, since I want to have systems that can keep track of where they are in multiple simultaneous multisecond processes.
Any suggestions?
Posted Aug 3, 2019, 3:37 PM UTC
If possible, I'd avoid regex and JSON. They are computationally expensive, too expensive to be run 60 times per second.Even too frequent string operations are taxing ...
It is OK to parse command from user or load/save state, but anything more frequent begs for performance problems ...
If possible, use C# structures or simple objects - IIRC they replaced String as parameter for antenna signals (though you can still use string).