Steveluo’s Blog

Just another weblog

Archive for August, 2009

C#, Java, C++ Performance

Posted by steveluo on August 23, 2009

1) C#, Java and C++
Microbenchmarking C++, C#, and Java   (DDJ 2005 )
C# versus C++ versus Java performance comparison
Java Performance
The Computer Language Benchmarks Game
Debunking C# vs C++ Performance

2) for C# Only
Compiling .NET to Machine Code
How to Write HighPerformance C# Code | .NET Developer’s Journal (2004)
Performance (C#) (MSDN)
Effective C# – Part I 
How to write friendlier code for the Garbage Collector and to gain performance boost
An in depth look at for loops  and For loop follow up (Disagreeing with Richter?!)

3) example
High-Performance Timer in C# / General / C#   [another]


Posted in Uncategorized | Leave a Comment »

Linq (3)

Posted by steveluo on August 19, 2009

I posted the question and get an answer
Hi I get the followwing direcories by calling GetDirectories()


I want to the directories between 20090531 and 20090731, How can I do it by Linq?
the answer is
var query = directories .Where(x => { return (String.Compare(x, @”c:\app\20090531″) > 0 && String.Compare(x, @”c:\app\20090731″) < 0) ;});

Posted in Uncategorized | Leave a Comment »