Click here to monitor SSC

Richard Mitchell

Project Manager - Red Gate Software
Developer and project manager at Red Gate Software Ltd. Now working solo on SQL Azure Backup

How many 64bit coders does it take to screw in a lightbulb?

Published Friday, January 19, 2007 8:17 AM

1050 - or thereabouts.

OK I must admit that's not entirely the question, but it is however the answer. As some of you out there know I'm working on the new version of ANTS Profiler (gratuitous link to product, marketing would be so proud) and in the course of my explorations I have of course been using a very simple test app just to sanity check the product as I'm developing it so I don't give the testers a completely broken build.

One of the things this program does is a fairly innocent looking

Consle.WriteLine(1);

Well that shouldn't be too painful and indeed on the 32 bit version of the Profiler it takes a fairly short amount of time. However on the 64 bit profiler it takes a little longer....a lot longer. What can be going on here, why does a simple WriteLine() take so long?

So how many CLR function calls do you think are getting executed for that simple line? 4, 30, 200 - all of these guesses by my colleagues (well the 4 was from somebody who likes Unix too much ;)). No the 64 bit CLR performs around 1050 CLR function calls to do the first WriteLine() and around 80 CLR function calls thereafter.

It's amazing - and that is only the CLR function calls who know how much native stuff is going on under the surface.

Modern computers are amazing that this can all happen in the blink of an eye and I only notice the complexity if I go looking for it.

Oh and the answer to the original question...0x0000000000000001 of course.

Comments

No Comments
You need to sign in to comment on this blog
<January 2007>
SuMoTuWeThFrSa
31123456
78910111213
14151617181920
21222324252627
28293031123
45678910
How to Kill a Company in One Step or Save it in Three
 The majority of companies that suffer a major data loss subsequently go out of business. Wesley David... Read more...

Migrating from OCS 2007 R2 to Lync: Part 4
 Having migrated the rest of our users and legacy resources across and started getting ready to... Read more...

Automated Script-generation with Powershell and SMO
 In the first of a series of articles on automating the process of building, modifying and copying SQL... Read more...

Seth Godin: Big in the IT Business
 Seth Godin has transformed our understanding of marketing in IT. He invented the concept of 'permission... Read more...

Using SQL Test Database Unit Testing with TeamCity Continuous Integration
 With database applications, the process of test and integration can be frustratingly slow because so... Read more...