When I using EmbeddedViewsVirtualPathProvider for getting views from assembly resources provider has poor performance in MVC 4. Issue is in methods DirectoryExists and FileExists becouse when check for virtualPah/Dir that exists its OK but check for file witch isnt exist it tooks time. When I have Editor/DisplayTemplate for decimal MVC 4 try to find view like decimal.Mobile decimal.Table etc.. Becouse this files doesnt exists (but decimal.cshtml yes) cache is not hit. If I have 100 editors in page and every check tooks about 80ms, whole view is rendered in 8s.
If in methods FileExists and DirectoryExists will be falseCache for missing entries it will perform better.
Thanks