Visual studio feeds

All Visual Studio blogs in one place

Subscribe

Enter your email address:

Delivered by FeedBurner

Increase your website traffic with Attracta.com

Google+

Contact

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

Follow us on FB

Search

Get your Microsoft Build Conference pass from DVLUP!

AddThis Social Bookmark Button
Developers, BUILD 2015 is already sold out….. but there is still a chance to get there!DVLUP has 2 rewards for you:Ticket for Microsoft Build Developer Conference 2015 (for 20 000pts)50% off of a Ticket for Microsoft Build Conference 2015 (for 10 000pts)This is for the conference pass (Flight not included).
Hurry up as those rewards must be redeemed by January 30th, 2015!!

Excerpts from the RavenDB Performance team report: Expensive headers, and cache effects

AddThis Social Bookmark Button
This ended up being a pretty obvious, in retrospect. We noticed in the profiler that we spent a lot of time working with headers. Now, RavenDB is using REST as the communication layer, so it is doing a lot with that, but we should be able to do better. Then Tal dug into the actual implementation and found:
public string GetHeader(string key) { if (InnerHeaders.Contains(key) == false) return null; return InnerHeaders.GetValues(key).FirstOrDefault(); } public List GetHeaders(string key) { if (InnerHeaders.Contains(key) == false) return null; return InnerHeaders.GetValues(key).ToList(); } public HttpHeaders InnerHeaders { get { var headers = new Headers(); foreach (var header in InnerRequest.Headers) { if (header.Value.Count() == 1) headers.Add(header.Key, header.Value.First()); else headers.Add(header.Key, header.Value.ToList()); } if (InnerRequest.Content == null) return headers; foreach (var header in InnerRequest.Content.Headers) { if (header.Value.Count()
== 1) headers.Add(header.Key, header.Value.First()); else headers.Add(header.Key, header.Value.ToList()); } return headers; } }
To be fair, this implementation was created very early on, and no one ever actually spent any time looking it since (why would they? it worked, and quite well). The problem is the number of copies that we have, and the fact that to pull a since header, we have to copy all the headers, sometimes multiple times. We replaced this with code that wasn’t doing stupid stuff, and we couldn’t even find the cost of working with headers in the profiler any longer. But that brings up a really interesting question. How could we not know...(Read whole news on source site)

The Morning Brew #1784

AddThis Social Bookmark Button
Software [Announcement] OData Web API 5.4 Beta – Congyong Project Spartan and the Windows 10 January Preview Build – Jason Weber Information What to do with a caught exception – Cellfish ChessTDD 25: Yak-Shaving with a visit to trusty old ExtendedAssert – Erik Dietrich Automating web hosting creation in Azure with PowerShell – Troy Hunt […]

Announcing the Mojio Windows Phone Developer App Contest

AddThis Social Bookmark Button
Announcing the Mojio Windows Phone Developer App Contest



Mojio Windows Phone Developer App Contest

 Check out our Developer Centre

Green app: Focuses on reducing drivers’ carbon footprints.Fleet app: Focuses on managing a fleet of more than one vehicle more effectively.Business app: Focuses on helping a business manage its resources (i.e., people, time, money) more effectively.Gamification app: Focuses on gamifying driving in a safe manner.Wildcard app: An app which has a primary function that does not fit in any of the above categories.

Visual Studio Toolbox: Data Analysis for Developers

AddThis Social Bookmark Button
This is the seventh, and final, in a series of shows featuring speakers from the VSLive conference, which was held in Redmond in August. In this episode, Robert is joined by Andrew Brust for a discussion on data analysis. Although most developers have an interaction with data, they usually stop at collecting and maintaining it. Andrew explains why it is imperative that developers should also know how to visualize data and derive interpretations from it.

Home