Re: Status of @"" strings
Re: Status of @"" strings
- Subject: Re: Status of @"" strings
- From: Markus Hitter <email@hidden>
- Date: Thu, 12 Jul 2001 14:38:44 +0200
Am Donnerstag, 12. Juli 2001 um 13:55 schrieb Bill Cheeseman:
So, if you want to have a temporary empty string that you CAN release so
that it won't hang around in the code for the life of the app, is this
preferred? --
NSString *emptyString = [[NSString alloc] init];
I'm quite sure the instructions to do so eat a lot more bytes than the
empty constant. Further, this needs some processor cycles while the
constant does not.
Even for non-empty constants there isn't much to win unless you store
the contents in a (load-on-demand) resource file.
Markus
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/