Il2CppInterop icon indicating copy to clipboard operation
Il2CppInterop copied to clipboard

Use `Il2CppSystem.String` instead of `System.String`

Open ds5678 opened this issue 5 months ago • 0 comments

This also includes the removal of Il2CppStringArray and calling a conversion operator after ldstr during unstripping.

  • There are implicit conversion operators defined, so this shouldn't create extra friction in code.
  • String marshalling is expensive, and in many cases, eliminating it might lead to performance improvements.
  • Quite often the string is only read/tested, which is the primary scenario where performance would be gained.

ds5678 avatar Sep 01 '24 23:09 ds5678