PersistentDataModel: String of known length optimization

Merged Adam Edward Barton requested to merge abarton/athena:someTokenopti into 23.0

Some of these methods are called many million times per job so a small optimization may be useful.

Passing the known size of a string helps performance under gcc.


cc @ssnyder

Merge request reports