Since we are no longer using our native template expansion pipeline for anything performance-critical we should remove token caching (in particular in the tokenizer) and the restriction on tokens to be immutable. That will remove the need for a lot of cloning, which should help performance.
Version: unspecified
Severity: normal