DCSIMG
Performance,DEV - Gil Fink's Blog

Gil Fink's Blog

Fink about IT

News

Microsoft MVP

My Facebook Profile My Twitter Profile My Linkedin Profile

Locations of visitors to this page

Creative Commons License

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.
© Copyright 2013 Gil Fink

Hebrew Articles

Index Pages

My OSS Projects

English Articles

Browse by Tags

All Tags » Performance » DEV (RSS)
Quick Tip – JavaScript Statement Count Do Count
Quick Tip – JavaScript Statement Count Do Count One of the things that we as developers don’t seem to mind about is the amount of statements that we write in our code. In JavaScript, the number of statements might affect the speed of the operations we want to perform. It is our responsibility to find statements that should be combined in order to decrease the execution time. This post include some examples of places to decrease the amount of statements. Variable Declarations One of the places that...
The async and defer Script Attributes in HTML5
The async and defer Script Attributes in HTML5 One of the rules of thumb that you always hear regarding script elements is to put them very close to the </body> closing tag of the Web page. The main reason for that is that script elements are fetched and executed immediately when the browser encounter them. This default behavior includes blocking the browser’s rendering, loading a JavaScript file into memory, and executing its code immediately. In many circumstances, and in particular when...
Profiling JavaScript 101 Using IE9 Developer Tools
Profiling JavaScript 101 Using IE9 Developer Tools Lately I’m involved in a very interesting project which suffer from JavaScript performance issues in old browsers. The main “pain” in the project is the need to support IE8 which is used by many of the client’s users. I’ve got a call to come and help in the process of tuning the application and decided to share some tips of how I profiled the application and found some of the bottlenecks in the application JavaScript execution. Those bottlenecks...
Using Javascript to Measure Web Page Performance with IE9
Using Javascript to Measure Web Page Performance with IE9 One ability that currently available in IE9 is the new msPerformance javascript object that enables developers to measure real-world performance of websites. In this post I’ll explain what is msPerformance and how you can use it to measure web page performance. The msPerformance Object Wanting a web application that performs great is a very regular and crucial demand in these days. With IE9 beta developers have a new set of javascript profiling...
EFProf – Profiler Tool for Entity Framework
EFProf – Profiler Tool for Entity Framework One of the important tools in your tool arsenal when you develop with an ORM tool is a profiler. Like SQL profiler to a SQL Server DBA an Entity Framework profiler is a must have tool to Entity Framework developer. The main reasons to acquire such a tool are to understand what is going on underneath the hood in the query engine and for performance tuning. If you think that you can use Entity Framework without knowing what it is committing to database then...
ASP.NET Output Cache Provider
ASP.NET Output Cache Provider One of the new features that were shipped with ASP.NET 4 was new providers for caching purpose. In this post I’ll explain one of them – the OutputCacheProvider . OutputCacheProvider Up until ASP.NET 4 the output cache mechanism was implemented as in-memory caching and we couldn’t do nothing to change its behavior. If we desired to use a distributed cache like AppFabric caching or our own implementation we couldn’t achieve it. From ASP.NET 4 the caching is now following...
Cache Retrieval Pattern
Cache Retrieval Pattern In my previous post I wrote about cache layer and its position in every application. In this post I’m going to explain what is the cache retrieval pattern and show an example of how to implement it. Cache Retrieval Pattern When we implement a cache layer we need a strategy in order to retrieve cached items. The cache retrieval pattern is very simple and can be imposed into any application very fast. So how does it work? The business logic component will use the cache API in...
Cache Layer
Cache Layer Lately I found myself in some architecture consulting sessions at some customers. In every one of those customers I found myself explaining how to implement a cache layer in order to decrease the amount of round trips to the database and for better scalability. In this post I’ll try to explain in high level how to build a cache layer . Deciding to Build a Cache Layer Every application that performance is important to its developers and managers must contain some sort of caching . The...
Using Stub Entities in Entity Framework Screencasts
Using Stub Entities in Entity Framework Screencasts Today I recorded my first two screencasts (one in English and one in Hebrew) about how to use stub entities in Entity Framework in order to produce better performance by reducing database round trips. The link to the English version can be found here . The link to the Hebrew version can be found here . You can also download the screencasts in the details tab if you like. Enjoy!
CompiledQuery in Entity Framework
CompiledQuery in Entity Framework There are times when we want to make optimizations on some piece of code. If we want to reduce the cost of executing a query in Entity Framework we can use a CompiledQuery to the rescue. Yesterday I used added a compiled query to a code base which was executing multiple times. This reduced the execution time of the repeating queries. In the post I’ll explain what are CompiledQueries and how to use them. CompiledQuery CompiledQueries are a delegate which store a compiled...
Replacing ASP.NET Session with Velocity Session Provider
Replacing ASP.NET Session with Velocity Session Provider One nice feature of Microsoft Distributed Cache aka Velocity is a custom session provider that can replace the ASP.NET default session provider . In this post I’ll explain how to replace ASP.NET session with the Velocity session provider that is being provided with Velocity . Why Replacing the ASP.NET Session with Velocity Session? Sometimes we want to share a session across servers in a server farm. The ways to do so are to use a State Server...
Data Types For Caching
Data Types For Caching One of the big problems I see when I talk with people about caching is not recognizing the  different cached data types. Understanding the different types of data can help us to define what sort of caching do we need and also how to use caching systems to achieve the appropriate cache scenario we are going to use. This post will describe how to define data types for caching. Reference Data Reference data is data that doesn’t change frequently. This kind of data is usually...
Building a Simple Cache Manager
Building a Simple Cache Manager As I wrote in a previous post , I’ve started to work in a new project. My role there is a technical team leader of a very big team (10 developers). Part of my role is helping the team to create infrastructure for their applications. As part of the application’s infrastructure, I recommended to start using caching for better performance . In the post I’ll demonstrate the simple cache manager I’ve built for the team. ICacheManager Interface Before building the cache...
Quick Tip – How to Enable Local Cache in Velocity (Microsoft Distributed Cache) Client
Quick Tip – How to Enable Local Cache in Velocity (Microsoft Distributed Cache) Client Since I got this question twice this week, I’m writing this post. One of Velocity (Microsoft Distributed Cache) features is called local cache . In this post I’ll show how to enable that feature. Velocity Client Local Cache Local cache is a Velocity feature that can help speed up access on Velocity clients. When enabled, a de-serialized copy of the object is saved in the client memory. Before retrieving cached...
Setting an EntityReference Using an EntityKey in Entity Framework
Setting an EntityReference Using an EntityKey in Entity Framework Yesterday I got a question in my blog concerning the ability to set a reference to an entity in Entity Framework by using a foreign key that exists in my hand. The answer is described in this post. Setting an EntityReference Using an EntityKey Sometimes you want to set an EntityReference but you don’t have that entity in the ObjectContext but you have its key. One solution for this problem is to load the entity and then to set the...
More Posts Next page »