Feng Yuan (袁峰)

CLR, Performance, Debugging, Parallel Computing, WPF, XPS, GDI, GDI+, Printing (www.fengyuan.com)

Posts
  • Feng Yuan (袁峰)

    Improving CLRProfiler 2: 19.7% in TryGetValue

    • 2 Comments
    Playing with Visual Studio 2010 profiler data Function Code View finds another easy target for improvement: 19.7% in calling TryGetValue on a Dictionary object: This piece of code is called in 'c' command process for logged method call information...
  • Feng Yuan (袁峰)

    The benefit of having your own office

    • 2 Comments
    The benefit of having your own office, or at least one of them, is that you can have your own $29 IKEA armchar:
  • Feng Yuan (袁峰)

    American in Chinese History: Anson Burlingame

    • 3 Comments
    On the eve of Chinese president's visit to United States, I thought it's fitting to discuss some American figures in Chinese History. The first important person is Anson Burlingame. Mr. Anson Burlingame was appointed by Lincoln as minister to Austria...
  • Feng Yuan (袁峰)

    Improving CLRProfiler 3: Double the speed of profile loading

    • 1 Comments
    In the first step of profile-guided optimization, we reduced tatal CPU sample of ReadNewLog.ReadFile from 6,223 samples to 5,803 samples; the second step reduced it further to 3,982. Would it be nice if we can reduce it to below 3,111 samples, essentially...
  • Feng Yuan (袁峰)

    New Job: CLR performance team

    • 3 Comments
    I switched job to CLR performance team last August. Now I'm working on something which has huge customer impact, needs tons of technical depth, and fits my long time passion as an old practicing programmer (I still have 30-year source code listing...
  • Feng Yuan (袁峰)

    XPS at WinHec

    • 3 Comments
    There is a large presence of XPS at Winhec this year, which makes Global Graphics' booth banner very fitting: The XPS workflow demo in Will Poole's keynote speech was a complete success. It demonstrates generation, viewing, sharing, scanning and...
  • Feng Yuan (袁峰)

    Problem: Better way to remove characters that aren't 32 to 175

    • 0 Comments
    There is a question on StackOverflow.com about better ways to remove characters in a string that are outside the range of 32 to 175. Quite a few fancy solutions are provided: Regex . Replace ( myString , @"[^\x20-\xaf]+" , "" ); new string...
  • Feng Yuan (袁峰)

    TextWriter.WriteLine(string, object[]) in less memory, less time

    • 1 Comments
    I found myself increasingly generating reports in .csv format, and then use Excel to analyze the reports. With large amount of data written to the .csv file, file generation time becomes more and more noticable. So I took some time to check what is taking...
  • Feng Yuan (袁峰)

    Performance Tips: String.Split

    • 0 Comments
    String.Split methods are provided in .Net as a convenient way of dividing string into parts. Here are two basic forms of String.Split methods: public string [] Split( char [] separator, int count, StringSplitOptions options); public string [] Split...
  • Feng Yuan (袁峰)

    EWD637: Three Golden Rules for Successful Scientific Research

    • 0 Comments
    Here is something I read in graduate school and still thinks about from time to time: Edsger W. Dijkstra's Three Golden Rules for Successful Scientific Research: Raise your quality standards as high as you can live with, avoid wasting...
  • Feng Yuan (袁峰)

    XPS Again

    • 1 Comments
    I needed to generate images for an HTML document I'm generating, for which I use create a DrawingVisual and render it to a RenderTargetBitmap before saving to a PNG file. Now I would like to save the same visual to an XPS document. The benefit of having...
Page 3 of 3 (61 items) 123