Cor ,,
This were not just people who gave a demonstration just for fun , i am
talking about a Technet MSDN briefing we had here in the Netherlands when
you received the free copy of Vista and Windows 2008 .
Logica was at that time a early adaptor of Linq in a major wordwide project
directly supported by MS , as these 2 people were involved in that project
they were invited to share there experiences . The conclusion was that it
gives you a hughe perfomance boost in writing code , however it isn`t (
yet ) the fastest way of processing code .
But Microsoft is pretty honest regarding this even in official MS press
books and training kits you wil find that the author has other findings .
A nice example of this are Generics if you ever studied for 70-536 you might
have noticed that the author of the book could not reproduce the perfomance
benefit against type casting and yes this is written in the official self
paced training kit ( page 39 "Real World" ) .
I personally use LINQ and Generics a lot however when i have to process a
few million metering values ( because of my job as a production developer at
a energy billing company ) in the shortest amount of time i use the fastest
method and ofcourse the one that does not blow up in my face .
IMHO
All those new constructs give you a hughe coding speed advantage , and
should be favored wehenever possible but as with anny tool you must know
when to use it and when not ( yet ) .
Regards
Michel
Cor Ligthert said:
Michiel
What does it say that some people from Logica in the Netherlandsx tell
that?
I can make any benchmark to show that something is slow.
Cor
Michel Posseth said:
+ - One year ago i went to a MS seminar where LINQ was demonstrated ,
there were 2 persons from Logica who showed us how they used LINQ to SQL
in there projects , when one of the attendees asked them about the
processing perfomance instead of the RAD perfomance ( because that is
what they were focussing at ) they answered that they had contacted MS
about there findings and that this would in the near future be much
bether ! .
Then after some persuation from our side they showed there benchmark
application and it turned out that LINQ was teribly slow in comparisation
to traditional programming .
Ofcourse it could be that it is now much bether etc etc but AFAIK the
superb RAD perfomance of LINQ comes with the prize of less processing
perfomance
ofcourse in a project where you know this in forehand you can compesate
this with upscaling of your hardware it is in my opinion just what you
choose .
regards
Michel Posseth [MCP]
Lloyd Sheen said:
I'm just investigating Linq and it looks like it's a time saver for the
programmer. I'm wondering how the performance is if we want to use it
with our public websites?
We get an enormous amount of traffic. A while back we moved away from
gridviews on our public websites for the performance gain.
This is a good article that may help in your evaluation.
http://blogs.msdn.com/dinesh.kulkarni/archive/2008/04/27/lifetime-of-a-linq-to-sql-datacontext.aspx
I have been using it for quite a while and it is very responsive.
Remember that Linq is not only for Database operations, you can use it
in many ways to process lists etc.
http://msdn.microsoft.com/en-us/magazine/cc700332.aspx
http://msdn.microsoft.com/en-us/magazine/cc793963.aspx
LS