When I see a sequence of string replacements, instead of performance the main thing I worry about is if the output of one replaces matches a pattern for another replacement. I see variations of this often during code review.
Doesn't seem to be a problem here though because they're replacing macros by symbols that are known ahead of time.
Doesn't seem to be a problem here though because they're replacing macros by symbols that are known ahead of time.