This is an implementation detail. If it were to be implemented using string C, then it would have a Schlemiel Painter problem, because Schlemiel must look for a null terminator in order to know where to start drawing more. If its length is declared in any way, then this problem does not exist, because Schlemiel knows how long he needs a pole, so that the pole vault to the end of the string to make more painting.
Ultimately, you cannot know this (without disassembly) and you cannot rely on the answer that remains unchanged on all updates, so you just need to have some faith that Apple infrastructure engineers know what they are doing.
Itโs better to wait until something in your application is as fast as it should be, and then profile the application to find out what it is. In my experience, it almost never works slowly.
source share