Performance difference in Docker images
StartsWith
takes into account the culture. The container cultures differ because they do not have the same LANG
environment variable.
You can use one of the StartsWith
overloads to change how the culture is taken into account (e.g. variable.StartsWith(str, StringComparison.Ordinal)
).