Duplicate Strings in Flash
Posted: Mon Feb 12, 2018 1:45 pm
Just a quickie,
Is there any method to reduce duplicate Static strings in progmem.
I was hoping to find some clever trick to have a Dictionary of used words and method to build required sentences at run time, thus perhaps avoiding Duplicates.
I've tried a few methods but they all seem to produce more code than the space they save.! Less duplicates but larger code.
also I wonder if there is any sensible "minimum" length of a Static string stored in Progmem. Is it bad to use F("abc") or best to keep it to longer things.
Hv.
Is there any method to reduce duplicate Static strings in progmem.
I was hoping to find some clever trick to have a Dictionary of used words and method to build required sentences at run time, thus perhaps avoiding Duplicates.
I've tried a few methods but they all seem to produce more code than the space they save.! Less duplicates but larger code.
also I wonder if there is any sensible "minimum" length of a Static string stored in Progmem. Is it bad to use F("abc") or best to keep it to longer things.
Hv.