Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backport: avoid unnecessary String.format calls in IdUtils.validateId (…
…apache#12147) Based on profiling data, about 25% of the time de-serializing DataSchema is spent on formatting strings in validateId. This can add up quickly, especially when de-serializing task information in the overlord, where in can consume almost 2% of CPU if there are many tasks. Since the formatting is unnecessary unless the checks fail, we can leverage the built-in formatting of Preconditions.checkArgument instead to avoid the cost.
- Loading branch information