android - More efficient to directly assign or pull from XML? -


i trying reduce gc overhead size.

i noticed have several of keys bundle directly assigned string @ start of code , uses assignment later. example:

string newtimekey = "newtimekey"; 

is better if store string in resource xml , call @ start of program this?

string newtimekey = getstring(r.string.newtimekey); 


Comments

Popular posts from this blog

iis - ASP.Net Core CreatedAtAction in HttpPost action returns 201 but entire request ends with 500 -

gcc - Neither ld wrap nor LD_PRELOAD working to intercept system call -

ssh - Vagrant Windows - ssh_exchange_identification: read: Connection reset by peer -