Merge "Precalculate the required number of characters for path shortening"