Visual studio feeds

All Visual Studio blogs in one place


Enter your email address:

Delivered by FeedBurner

Increase your website traffic with



Anti-spam: How many eyes has a typical person?

Follow us on FB


Excerpts from the RavenDB Performance team report: Optimizing Memory Comparisons, size does matter

AddThis Social Bookmark Button
Note, this post was written by Federico. In the previous post after inspecting the decompiled source using ILSpy  we were able to uncover potential things we could do. In this fragment we have a pretty optimized method to compare an entire 4 bytes per loop. What if we could do that on 8 bytes? To achieve that we will use a ulong instead of a uint. This type of optimization makes sense for 2 reasons. Most of our users are already running RavenDB in x64 where the native word is 8 bytes and Voron is compiled
on x64 only. But even if that were not true, since the late 2000’ most CPUs would have a 64 bytes L1 cache line with half a cycle cost for a hit. So even if you can’t handle 64 bits in one go and the JIT or processor have to issue 2 instructions you are still getting a L1 cache hit and no pipeline stall. Which is GREAT . So without farther ado, this is the resulting code: Ayende’s note: In the code, the lp += (IntPtr)8/8; is actually defined as lp += 1; What...(Read whole news on source site)

The Morning Brew #1788

AddThis Social Bookmark Button
Information .NET Core Open Source Update – Immo Landwerth shares an interesting update on the .NET Core moving to open source, discussing the successes so far, and looking at some of the metrics they use to monitor progress Microsoft Orleans now available on GitHub – Lee Stott highlights the availability of Project Orleans as an […]

Automating your Azure infrastructure with Runbook management

AddThis Social Bookmark Button
With Azure automation, it’s now very easy to automate all your long running manual tasks that are repetitively executed in the Azure infrastructure with the help of PowerShell workflows that results in less errors in a better managed way. You can automate the creation, monitoring, deployment, and maintenance of resources in your Azure environment using the Azure Automation solution for Azure.

After creating the
automation account, click on the account and select Runbook from the dashboard
Click New and create a runbook with a title and description as given below
This will open the runbook edit workspace on the portal.
Automation runbooks are implemented as Windows PowerShell workflows. As you can see from the editor window, the workflow starts with a workflow keyword followed by the name of the workflow. You can add parameters...(Read whole news on source site)

Entity Framework Pitfalls: Command Interceptors and Identity Keys

AddThis Social Bookmark Button
The IDbCommandInterceptor (sorry, no official documentation) interface was introduced in Entity Framework 6 as part of the new interception and logging API, and allows the interception of the SQL and its parameters that are sent to the database as the result of DbContext CRUD operations.It offers two methods for each of the basic ADO.NET operations, those defined in DbCommand, one called before the operation is executed, and the other called afterwards:
ExecuteNonQuery (UPDATEs, INSERTs, DELETEs) –> NonQueryExecuting, NonQueryExecuted;
ExecuteScalar (SELECTs returning a single value) –> ScalarExecuting,
ExecuteReader (SELECTs returning rows) –> ReaderExecuting, ReaderExecuted.

As usual, the methods ending with “ing” are executed before and those ending with “ed” are executed afterwards, always synchronously.One might naively assume that INSERTs would always trigger a NonQueryExecuting/NonQueryExecuted call, and indeed it is so, unless we have an IDENTITY primary key, in which case, Entity Framework will instead call ReaderExecuting/ReaderExecuted. It’s easy to understand why: when we use an IDENTITY, we need to retrieve the generated value immediately after the INSERT, hence Entity Framework will generate code like:

Managing your Azure VM’s with your Phone

AddThis Social Bookmark Button
I have been doing quite a bit of ALM Training recently and have been trying to figure out how best to manage my training VM’s. In the last few months I have taught both the Managing Projects with Microsoft Visual Studio Team Foundation Server 2013 and TFS 2013 Developer Fundamentals a number of times and [...] The post Managing your Azure VM’s with your Phone appeared first on naked ALM - Experts in ALM, TFS & lean-agile with Scrum.