"Glimpse" of Loops Vs Set
SWATI GUPTA, MINDFIRE SOLUTIONS.
Me!
 swatig@mindfiresolutions.com
 ASP.NET, ASP.NET MVC, SQL Server, Entity Framework, jQuery, KendoUI,
Bootstrap
 FxCop, ReSharper, Firebug/YSlow, Chrome developer tools, Firefox
developer tools.
 Microsoft Azure
 Certified HTML5, ASP.NET and ASP.NET MVC developer
 Love to refactor, optimize, performance tune.
AGENDA
 Glimpse - How to setup and Why?
 Browser debugging tools VS Glimpse
 Performance optimize ASP.NET MVC application
 Identify application performance bottlenecks
 Inspect time taken by the calls - Glimpse
 What can be done?
 Come out of Loops!
 Demo of Kendo Scheduler Recurrence flow
 Compare time taken by the conventional flow VS modified logic.
Glimpse - Are you using it already?
 Lets you see diagnostics information about what is happening on your
server directly in your page through a small diagnostics window
completely rendered in JavaScript.
 free diagnostics platform for the web.
 works best with ASP.NET and especially ASP.NET MVC, can be extended to
other platforms as well.
 Extendable
 Plugins for Entity Framework, NHibernate, Ninject and many more.
Glimpse SetUp
 Easy to set up.
 Use NuGet from Visual Studio to install your desired Glimpse packages. For
ASP.NET MVC 5, install Glimpse Mvc5.
 Open up the Package Manager Console and type “Install-Package
Glimpse.Mvc5” (or“Glimpse.AspNet” if you aren’t using MVC)
 Or, right click on references, select Manage NuGet Packages, search for
Glimpse and select the appropriate Glimpse package.
 Turn On Glimpse by launching your app and navigate to glimpse.axd. Click
“Turn Glimpse On” to set a cookie that will tell the Glimpse component running
on the server to send you Glimpse data.
 Start playing with it - Hurray!
Using Glimpse
Each tab contains different diagnostics information about the application.
Helpful in troubleshooting problems.
Plugins - For example, if we add Entity Framework plugin,we see a tab i.e Sql Tab that shows data
about EF queries.
HighlySecured! - Unless we tell Glimpse otherwise, we can only access Glimpse from localhost, you
won't be able to access Glimpse remotely with the default runtime policy.
Can be enabled for Remote Access - http://getglimpse.com/Docs/Configuration#configuring-
runtime-policy
Browser Debugging Tools VS Glimpse
 Glimpse runs on Server side while all browser debugging Tools run on Client
Side!
 Could also be used in a production environment as a profiling tool to get a
Timeline view of what’s happening on the server.
Performance Optimize ASP.NET MVC
App
 Identify application bottlenecks.
 Client side otpimization.
 Server side optimization.
 Inspect Time taken by the calls using Glimpse.
 Avoid excess looping!
 Optimize.
Demo - Kendo Scheduler Recurrence
Flow
 Lets see what's going on inside Kendo Scheduler!
 Is it looking Okay?
 Using Glimpse.
 Optimize!
How we Optimized
 SP - Lets see how we optimized the whole recurrence logic.
 Compare time taken by the old code Vs modified code - Glimpse!
 Result - Performance Gain , from some more than 1000 LOC to some 100
LOC !
 Isn't it awesome!
Thank You!

Glimpse of Loops Vs Set

  • 1.
    "Glimpse" of LoopsVs Set SWATI GUPTA, MINDFIRE SOLUTIONS.
  • 2.
    Me!  swatig@mindfiresolutions.com  ASP.NET,ASP.NET MVC, SQL Server, Entity Framework, jQuery, KendoUI, Bootstrap  FxCop, ReSharper, Firebug/YSlow, Chrome developer tools, Firefox developer tools.  Microsoft Azure  Certified HTML5, ASP.NET and ASP.NET MVC developer  Love to refactor, optimize, performance tune.
  • 3.
    AGENDA  Glimpse -How to setup and Why?  Browser debugging tools VS Glimpse  Performance optimize ASP.NET MVC application  Identify application performance bottlenecks  Inspect time taken by the calls - Glimpse  What can be done?  Come out of Loops!  Demo of Kendo Scheduler Recurrence flow  Compare time taken by the conventional flow VS modified logic.
  • 4.
    Glimpse - Areyou using it already?  Lets you see diagnostics information about what is happening on your server directly in your page through a small diagnostics window completely rendered in JavaScript.  free diagnostics platform for the web.  works best with ASP.NET and especially ASP.NET MVC, can be extended to other platforms as well.  Extendable  Plugins for Entity Framework, NHibernate, Ninject and many more.
  • 5.
    Glimpse SetUp  Easyto set up.  Use NuGet from Visual Studio to install your desired Glimpse packages. For ASP.NET MVC 5, install Glimpse Mvc5.  Open up the Package Manager Console and type “Install-Package Glimpse.Mvc5” (or“Glimpse.AspNet” if you aren’t using MVC)  Or, right click on references, select Manage NuGet Packages, search for Glimpse and select the appropriate Glimpse package.  Turn On Glimpse by launching your app and navigate to glimpse.axd. Click “Turn Glimpse On” to set a cookie that will tell the Glimpse component running on the server to send you Glimpse data.  Start playing with it - Hurray!
  • 6.
    Using Glimpse Each tabcontains different diagnostics information about the application. Helpful in troubleshooting problems. Plugins - For example, if we add Entity Framework plugin,we see a tab i.e Sql Tab that shows data about EF queries. HighlySecured! - Unless we tell Glimpse otherwise, we can only access Glimpse from localhost, you won't be able to access Glimpse remotely with the default runtime policy. Can be enabled for Remote Access - http://getglimpse.com/Docs/Configuration#configuring- runtime-policy
  • 7.
    Browser Debugging ToolsVS Glimpse  Glimpse runs on Server side while all browser debugging Tools run on Client Side!  Could also be used in a production environment as a profiling tool to get a Timeline view of what’s happening on the server.
  • 8.
    Performance Optimize ASP.NETMVC App  Identify application bottlenecks.  Client side otpimization.  Server side optimization.  Inspect Time taken by the calls using Glimpse.  Avoid excess looping!  Optimize.
  • 9.
    Demo - KendoScheduler Recurrence Flow  Lets see what's going on inside Kendo Scheduler!  Is it looking Okay?  Using Glimpse.  Optimize!
  • 10.
    How we Optimized SP - Lets see how we optimized the whole recurrence logic.  Compare time taken by the old code Vs modified code - Glimpse!  Result - Performance Gain , from some more than 1000 LOC to some 100 LOC !  Isn't it awesome!
  • 11.