The concat() function and the wildcard features (wildcard, wildcard_replace()) serve very different purposes. concat() is designed for string concatenation and is very fast, as it simply joins byte strings together.
On the other hand, wildcard operations like wildcard and wildcard_replace() involve pattern matching, which makes them generally slower compared to concat() because they have to process and match patterns across inputs.