You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.
Today given an app relative path, we use Path.GetDirectoryName to determine potential paths for _ViewStart.cshtml. Path.GetDirectoryName does a bunch of operations to figure out if the path is absolute and sanitizing which shows up in perf profiles. Additionally, it attempts to normalize the directory separator
Since these paths are generated from the Razor view engines, an option would be to consider simply substring-ing the passed in path rather than using Path.GetDirectoryName. Some discussion about this is available at #1996 (comment)
The text was updated successfully, but these errors were encountered:
This bug isn't relevant anymore, we've already decided to cache all of this data as part of the changes in #3364. After that PR is checked in, we'll profile and identify any new issues that crop up.
Today given an app relative path, we use
Path.GetDirectoryName
to determine potential paths for _ViewStart.cshtml.Path.GetDirectoryName
does a bunch of operations to figure out if the path is absolute and sanitizing which shows up in perf profiles. Additionally, it attempts to normalize the directory separatorSince these paths are generated from the Razor view engines, an option would be to consider simply substring-ing the passed in path rather than using Path.GetDirectoryName. Some discussion about this is available at #1996 (comment)
The text was updated successfully, but these errors were encountered: