Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

Performance problem - Critical points in the system.

$
0
0

I discovered that in the visual studio tool, has Analyze, which shows the critical points in the code, and it was verified that the time consumption is in those queries referring to the dll of the code below, how could I improve that part in my code?

Name
| + SDPJView.Global.Application_BeginRequest(object,class System.EventArgs)

Inclusive Allocations
79.667

Exclusive Allocations
0

Inclusive Bytes
4.262.010

Exclusive Bytes
0

Inclusive Allocations %
5,96%

code:
These are my 3 critical points.

protected void Application_BeginRequest(object sender, EventArgs e)  
        {  
            WebSessionContext.Bind(NhibernateHelper.SessionFactory.OpenSession());  
        }  
public static ISessionFactory SessionFactory  
        {  
            get { return Instance.sessionFactory; }  
        }  
class CreateSessionManager  
        {  
            internal static readonly NhibernateHelper createsessionmanager = new NhibernateHelper();  
        }  

Is there a way to improve?




Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>